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.
get_spans_grouped_by_scenario_id
Two-pass buffer scan that groups all captured spans by scouter.eval.scenario_id.
get_trace_ids_by_scenario_ids
Returns the set of trace IDs for any captured span that carries a scouter.eval.scenario_id attribute whose value matches one of the provided scenario IDs.
is_capturing
Returns true if local span capture is currently enabled.