package trace
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A stub for tracing/observability, agnostic in how data is collected
Install
dune-project
Dependency
Authors
Maintainers
Sources
trace-0.10.1.tbz
sha256=0b5121a2b3ca0f0d850017865333259f313ce83f77bba54da956f9cafbba6e34
sha512=06476b3b450d3f382ba7e5287591e2bb0f928d38b698af0bd6083d1518fcac93bf498815710d26ecbe9c80c71888638919c0166a79e447ee64ed625afd56dc4b
doc/trace.event/Trace_event/Subscriber/Callbacks/index.html
Module Subscriber.CallbacksSource
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 ->
unitEnter 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 ->
unitAdd 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 ->
unitEmit a log message
Source
val on_counter :
st ->
time_ns:int64 ->
tid:int ->
data:(string * Trace_subscriber__.Types.user_data) list ->
name:string ->
float ->
unitEmit 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 ->
unitEnter 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 ->
unitExit a manual span
Extension event
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>