diff --git a/trace/Trace/index.html b/trace/Trace/index.html index f22278f..f063d37 100644 --- a/trace/Trace/index.html +++ b/trace/Trace/index.html @@ -1,5 +1,5 @@ -
TraceShim that just forwards to Trace_core.
The reason is, Trace is already defined in the compiler libs and can clash with this module inside a toplevel. So it's safer to only depend on Trace_core in libraries that might end up used in a toplevel.
include module type of struct include Trace_core endtype span = Trace_core.span = ..A span. Its representation is defined by the current collector.
type parent = Trace_core.parent = | P_unknownParent is not specified at this point
*)| P_noneWe know the current span has no parent
*)| P_some of spanWe know the parent of the current span
*)Information about a span's parent span, if any.
User defined data, generally passed as key/value pairs to whatever collector is installed (if any).
type explicit_span = spantype explicit_span_ctx = spantype extension_parameter = Trace_core.extension_parameter = ..An extension parameter, used to carry information for spans/messages/metrics that can be backend-specific or just not envisioned by trace.
type metric = Trace_core.metric = ..A metric, can be of many types. See Core_ext for some builtin metrics.
module Collector = Trace_core.Collectormodule Level = Trace_core.Levelmodule Ambient_span_provider = Trace_core.Ambient_span_providerIs there a collector?
This is fast, so that the traced program can check it before creating any span or message.
val get_default_level : unit -> Level.tCurrent default level for spans.
val set_default_level : Level.t -> unitSet level used for spans that do not specify it. The default default value is Level.Trace.
val with_span :
+Trace (trace.Trace) Module Trace
Shim that just forwards to Trace_core.
The reason is, Trace is already defined in the compiler libs and can clash with this module inside a toplevel. So it's safer to only depend on Trace_core in libraries that might end up used in a toplevel.
include module type of struct include Trace_core end
type span = Trace_core.span = ..A span. Its representation is defined by the current collector.
This representation changed in 0.11 (from int64 to an open sum type)
type parent = Trace_core.parent = | P_unknown(*Parent is not specified at this point
*)| P_none(*We know the current span has no parent
*)| P_some of span(*We know the parent of the current span
*)
Information about a span's parent span, if any.
User defined data, generally passed as key/value pairs to whatever collector is installed (if any).
type explicit_span = spantype explicit_span_ctx = spantype extension_parameter = Trace_core.extension_parameter = ..An extension parameter, used to carry information for spans/messages/metrics that can be backend-specific or just not envisioned by trace.
type metric = Trace_core.metric = ..A metric, can be of many types. See Core_ext for some builtin metrics.
module Collector = Trace_core.Collectormodule Level = Trace_core.Levelmodule Ambient_span_provider = Trace_core.Ambient_span_providerTracing
Is there a collector?
This is fast, so that the traced program can check it before creating any span or message.
val get_default_level : unit -> Level.tCurrent default level for spans.
val set_default_level : Level.t -> unitSet level used for spans that do not specify it. The default default value is Level.Trace.
val with_span :
?level:Level.t ->
?__FUNCTION__:string ->
__FILE__:string ->
diff --git a/trace/Trace_core/index.html b/trace/Trace_core/index.html
index e45673f..1e15950 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
Main tracing interface.
This interface is intended to be lightweight and usable in both libraries and applications. It has very low overhead if no Collector.t is installed.
type parent = | P_unknown(*Parent is not specified at this point
*)| P_none(*We know the current span has no parent
*)| P_some of span(*We know the parent of the current span
*)
Information about a span's parent span, if any.
User defined data, generally passed as key/value pairs to whatever collector is installed (if any).
type explicit_span = spantype explicit_span_ctx = spanAn extension parameter, used to carry information for spans/messages/metrics that can be backend-specific or just not envisioned by trace.
A metric, can be of many types. See Core_ext for some builtin metrics.
module Collector : sig ... endA global collector.
module Level : sig ... endTracing levels.
module Ambient_span_provider : sig ... endAccess/set the current span from some ambient context.
Tracing
Is there a collector?
This is fast, so that the traced program can check it before creating any span or message.
val get_default_level : unit -> Level.tCurrent default level for spans.
val set_default_level : Level.t -> unitSet level used for spans that do not specify it. The default default value is Level.Trace.
val with_span :
+Trace_core (trace.Trace_core) Module Trace_core
Main tracing interface.
This interface is intended to be lightweight and usable in both libraries and applications. It has very low overhead if no Collector.t is installed.
A span. Its representation is defined by the current collector.
This representation changed in 0.11 (from int64 to an open sum type)
type parent = | P_unknown(*Parent is not specified at this point
*)| P_none(*We know the current span has no parent
*)| P_some of span(*We know the parent of the current span
*)
Information about a span's parent span, if any.
User defined data, generally passed as key/value pairs to whatever collector is installed (if any).
type explicit_span = spantype explicit_span_ctx = spanAn extension parameter, used to carry information for spans/messages/metrics that can be backend-specific or just not envisioned by trace.
A metric, can be of many types. See Core_ext for some builtin metrics.
module Collector : sig ... endA global collector.
module Level : sig ... endTracing levels.
module Ambient_span_provider : sig ... endAccess/set the current span from some ambient context.
Tracing
Is there a collector?
This is fast, so that the traced program can check it before creating any span or message.
val get_default_level : unit -> Level.tCurrent default level for spans.
val set_default_level : Level.t -> unitSet level used for spans that do not specify it. The default default value is Level.Trace.
val with_span :
?level:Level.t ->
?__FUNCTION__:string ->
__FILE__:string ->