package opentelemetry
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Instrumentation for https://opentelemetry.io
Install
dune-project
Dependency
Authors
Maintainers
Sources
opentelemetry-0.11.1.tbz
sha256=0e289b62046daba6427d87276dba52c7d2adfc3d85723d29b3d97141ae522853
sha512=754ef48ee2883f5927dd0e6dcc28dfb2d8faee98be5952578f48515f58898063b6bc7a137bc68d9fbee2e5a8897c7af035e700e53ff202a6df79e74e1aeaf6d4
doc/src/opentelemetry_ambient_context_eio/opentelemetry_ambient_context_eio.ml.html
Source file opentelemetry_ambient_context_eio.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40module TLS = Thread_local_storage module Fiber = Eio.Fiber open struct let _internal_key : Hmap.t Fiber.key = Fiber.create_key () let ( let* ) = Option.bind end module M = struct let name = "Storage_eio" let[@inline] get_map () = Fiber.get _internal_key let[@inline] with_map m cb = Fiber.with_binding _internal_key m cb let create_key = Hmap.Key.create let get k = let* context = get_map () in Hmap.find k context let with_binding k v cb = let new_context = match get_map () with | None -> Hmap.singleton k v | Some old_context -> Hmap.add k v old_context in with_map new_context cb let without_binding k cb = let new_context = match get_map () with | None -> Hmap.empty | Some old_context -> Hmap.rem k old_context in with_map new_context cb end let storage () : Opentelemetry_ambient_context.storage = (module M)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>