diff --git a/trace/Trace/index.html b/trace/Trace/index.html index 37e0e16..06dc7fe 100644 --- a/trace/Trace/index.html +++ b/trace/Trace/index.html @@ -1,5 +1,5 @@ -
Traceinclude module type of struct include Trace_core endUser defined data, generally passed as key/value pairs to whatever collector is installed (if any).
type explicit_span = Trace_core.explicit_span = {span : span;Identifier for this span. Several explicit spans might share the same identifier since we can differentiate between them via meta.
mutable meta : Trace_core.Meta_map.t;Metadata for this span (and its context)
*)}Explicit span, with collector-specific metadata
module Collector = Trace_core.Collectormodule Meta_map = Trace_core.Meta_mapIs there a collector?
This is fast, so that the traced program can check it before creating any span or message.
val with_span :
+Trace (trace.Trace) Module Trace
include module type of struct include Trace_core end
User defined data, generally passed as key/value pairs to whatever collector is installed (if any).
type explicit_span = Trace_core.explicit_span = {span : span;(*Identifier for this span. Several explicit spans might share the same identifier since we can differentiate between them via meta.
*)mutable meta : Trace_core.Meta_map.t;(*Metadata for this span (and its context). This can be used by collectors to carry collector-specific information from the beginning of the span, to the end of the span.
*)
}Explicit span, with collector-specific metadata
module Collector = Trace_core.Collectormodule Meta_map = Trace_core.Meta_mapTracing
Is there a collector?
This is fast, so that the traced program can check it before creating any span or message.
val with_span :
?__FUNCTION__:string ->
__FILE__:string ->
__LINE__:int ->
diff --git a/trace/Trace_core/Collector/index.html b/trace/Trace_core/Collector/index.html
new file mode 100644
index 0000000..015d582
--- /dev/null
+++ b/trace/Trace_core/Collector/index.html
@@ -0,0 +1,2 @@
+
+Collector (trace.Trace_core.Collector) Module Trace_core.Collector
A global collector.
The collector, if present, is responsible for collecting messages and spans, and storing them, recording them, forward them, or offering them to other services and processes.
module type S = sig ... endSignature for a collector.
\ No newline at end of file
diff --git a/trace/Trace_core/Collector/module-type-S/index.html b/trace/Trace_core/Collector/module-type-S/index.html
new file mode 100644
index 0000000..74c76cd
--- /dev/null
+++ b/trace/Trace_core/Collector/module-type-S/index.html
@@ -0,0 +1,95 @@
+
+S (trace.Trace_core.Collector.S) Module type Collector.S
Signature for a collector.
This is only relevant to implementors of tracing backends; to instrument your code you only need to look at the Trace module.
val with_span :
+ __FUNCTION__:string option ->
+ __FILE__:string ->
+ __LINE__:int ->
+ data:
+ (string
+ * [ `Int of int
+ | `String of string
+ | `Bool of bool
+ | `Float of float
+ | `None ])
+ list ->
+ string ->
+ (int64 -> 'a) ->
+ 'aRun the function in a new span.
This replaces the previous enter_span and exit_span which were too flexible to be efficient to implement in async contexts.
val enter_span :
+ __FUNCTION__:string option ->
+ __FILE__:string ->
+ __LINE__:int ->
+ data:
+ (string
+ * [ `Int of int
+ | `String of string
+ | `Bool of bool
+ | `Float of float
+ | `None ])
+ list ->
+ string ->
+ int64Enter a new implicit span. For many uses cases, with_span will be easier to use.
Exit span. This should be called on the same thread as the corresponding enter_span, and nest properly with other calls to enter/exit_span and with_span.
val enter_manual_span :
+ parent:Trace_core__.Types.explicit_span option ->
+ flavor:[ `Sync | `Async ] option ->
+ __FUNCTION__:string option ->
+ __FILE__:string ->
+ __LINE__:int ->
+ data:
+ (string
+ * [ `Int of int
+ | `String of string
+ | `Bool of bool
+ | `Float of float
+ | `None ])
+ list ->
+ string ->
+ Trace_core__.Types.explicit_spanEnter an explicit span. Surrounding scope, if any, is provided by parent, and this function can store as much metadata as it wants in the hmap in the explicit_span's meta field.
This means that the collector doesn't need to implement contextual storage mapping span to scopes, metadata, etc. on its side; everything can be transmitted in the explicit_span.
val add_data_to_span :
+ int64 ->
+ (string
+ * [ `Int of int
+ | `String of string
+ | `Bool of bool
+ | `Float of float
+ | `None ])
+ list ->
+ unit0.4
val add_data_to_manual_span :
+ Trace_core__.Types.explicit_span ->
+ (string
+ * [ `Int of int
+ | `String of string
+ | `Bool of bool
+ | `Float of float
+ | `None ])
+ list ->
+ unitAdds data to the given span.
val message :
+ ?span:int64 ->
+ data:
+ (string
+ * [ `Int of int
+ | `String of string
+ | `Bool of bool
+ | `Float of float
+ | `None ])
+ list ->
+ string ->
+ unitEmit a message with associated metadata.
val counter_int :
+ data:
+ (string
+ * [ `Int of int
+ | `String of string
+ | `Bool of bool
+ | `Float of float
+ | `None ])
+ list ->
+ string ->
+ int ->
+ unitInteger counter.
\ No newline at end of file
diff --git a/trace/Trace_core/Meta_map/Key/index.html b/trace/Trace_core/Meta_map/Key/index.html
new file mode 100644
index 0000000..47f7197
--- /dev/null
+++ b/trace/Trace_core/Meta_map/Key/index.html
@@ -0,0 +1,2 @@
+
+Key (trace.Trace_core.Meta_map.Key) Module Meta_map.Key
\ No newline at end of file
diff --git a/trace/Trace_core/Meta_map/M/index.html b/trace/Trace_core/Meta_map/M/index.html
new file mode 100644
index 0000000..e3797f1
--- /dev/null
+++ b/trace/Trace_core/Meta_map/M/index.html
@@ -0,0 +1,6 @@
+
+M (trace.Trace_core.Meta_map.M) Module Meta_map.M
\ No newline at end of file
diff --git a/trace/Trace_core/Meta_map/index.html b/trace/Trace_core/Meta_map/index.html
new file mode 100644
index 0000000..d0f8fd1
--- /dev/null
+++ b/trace/Trace_core/Meta_map/index.html
@@ -0,0 +1,2 @@
+
+Meta_map (trace.Trace_core.Meta_map) Module Trace_core.Meta_map
module type KEY_IMPL = sig ... endmodule Key : sig ... endtype 'a key = 'a Key.tmodule M : sig ... endval empty : tval cardinal : t -> intval length : t -> int
\ No newline at end of file
diff --git a/trace/Trace_core/Meta_map/module-type-KEY_IMPL/index.html b/trace/Trace_core/Meta_map/module-type-KEY_IMPL/index.html
new file mode 100644
index 0000000..cfe5620
--- /dev/null
+++ b/trace/Trace_core/Meta_map/module-type-KEY_IMPL/index.html
@@ -0,0 +1,2 @@
+
+KEY_IMPL (trace.Trace_core.Meta_map.KEY_IMPL) Module type Meta_map.KEY_IMPL
\ No newline at end of file
diff --git a/trace/Trace_core/index.html b/trace/Trace_core/index.html
index 5b1473a..2e3c3e5 100644
--- a/trace/Trace_core/index.html
+++ b/trace/Trace_core/index.html
@@ -1,5 +1,5 @@
-Trace_core (trace.Trace_core) Module Trace_core
Trace.
User defined data, generally passed as key/value pairs to whatever collector is installed (if any).
type explicit_span = {span : span;(*Identifier for this span. Several explicit spans might share the same identifier since we can differentiate between them via meta.
*)mutable meta : Meta_map.t;(*Metadata for this span (and its context)
*)
}Explicit span, with collector-specific metadata
module Collector : sig ... endA global collector.
module Meta_map : sig ... endAssociative containers with Heterogeneous Values
Tracing
Is there a collector?
This is fast, so that the traced program can check it before creating any span or message.
val with_span :
+Trace_core (trace.Trace_core) Module Trace_core
Trace.
User defined data, generally passed as key/value pairs to whatever collector is installed (if any).
type explicit_span = {span : span;(*Identifier for this span. Several explicit spans might share the same identifier since we can differentiate between them via meta.
*)mutable meta : Meta_map.t;(*Metadata for this span (and its context). This can be used by collectors to carry collector-specific information from the beginning of the span, to the end of the span.
*)
}Explicit span, with collector-specific metadata
module Collector : sig ... endA global collector.
module Meta_map : sig ... endTracing
Is there a collector?
This is fast, so that the traced program can check it before creating any span or message.