Skip to main content

Module span_capture

Module span_capture 

Source

Constants§

CAPTURE_BUFFER_MAX

Statics§

CAPTURE_BUFFER
Global buffer of captured spans.
CAPTURING
Whether local span capture is enabled.

Functions§

drain_captured_spans
Drain all captured spans from the buffer (takes ownership).
get_all_captured_spans
Returns a clone of all captured spans without draining.
get_captured_spans_by_trace_ids
Returns clones of spans matching the given trace_ids. Does NOT drain the buffer.
is_capturing
Returns true if local span capture is currently enabled.