package trace
A stub for tracing/observability, agnostic in how data is collected
Install
Dune Dependency
Authors
Maintainers
Sources
trace-0.10.tbz
sha256=c5a43827bbd5521e779c8856e44f4c718dccda902d00a242b598516110ada04d
sha512=f19cb25a767ed428cb1d4a497312267524bfaaf9550caa5fc1e84809494f0b7eaf26030d95563c75dea66606fcbec1be7e34baa4cba86fc57d64bc5d5b98efd5
doc/trace.event/Trace_event/Subscriber/Callbacks/index.html
Module Subscriber.Callbacks
Source
Type of the state passed to every callback.
Called when the subscriber is initialized in a collector
Current thread is being named
Current process is being named
Source
val on_enter_span :
st ->
__FUNCTION__:string option ->
__FILE__:string ->
__LINE__:int ->
time_ns:int64 ->
tid:int ->
data:(string * Trace_subscriber__.Types.user_data) list ->
name:string ->
Trace_core.span ->
unit
Enter a regular (sync) span
Exit a span. This and on_enter_span
must follow strict stack discipline
Source
val on_add_data :
st ->
data:(string * Trace_subscriber__.Types.user_data) list ->
Trace_core.span ->
unit
Add data to a regular span (which must be active)
Source
val on_message :
st ->
time_ns:int64 ->
tid:int ->
span:Trace_core.span option ->
data:(string * Trace_subscriber__.Types.user_data) list ->
string ->
unit
Emit a log message
Source
val on_counter :
st ->
time_ns:int64 ->
tid:int ->
data:(string * Trace_subscriber__.Types.user_data) list ->
name:string ->
float ->
unit
Emit the current value of a counter
Source
val on_enter_manual_span :
st ->
__FUNCTION__:string option ->
__FILE__:string ->
__LINE__:int ->
time_ns:int64 ->
tid:int ->
parent:Trace_core.span option ->
data:(string * Trace_subscriber__.Types.user_data) list ->
name:string ->
flavor:Trace_subscriber__.Types.flavor option ->
trace_id:Trace_core.trace_id ->
Trace_core.span ->
unit
Enter a manual (possibly async) span
Source
val on_exit_manual_span :
st ->
time_ns:int64 ->
tid:int ->
name:string ->
data:(string * Trace_subscriber__.Types.user_data) list ->
flavor:Trace_subscriber__.Types.flavor option ->
trace_id:Trace_core.trace_id ->
Trace_core.span ->
unit
Exit a manual span
Extension event
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>