package opentelemetry

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file opentelemetry_ambient_context_types.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
type 'a key = 'a Hmap.key

module type STORAGE = sig
  val name : string

  val get_map : unit -> Hmap.t option

  val with_map : Hmap.t -> (unit -> 'b) -> 'b

  val create_key : unit -> 'a key

  val get : 'a key -> 'a option

  val with_binding : 'a key -> 'a -> (unit -> 'b) -> 'b

  val without_binding : 'a key -> (unit -> 'b) -> 'b
end

type storage = (module STORAGE)