Skip to main content

Module trace_utils

Module trace_utils 

Source
Expand description

Trace-utils functionalities implementation for tinybytes based spans

Structs§

DroppedP0Stats

Functions§

compute_top_level_span
Updates all the spans top-level attribute. A span is considered top-level if:
drop_chunks
Remove spans and chunks from a TraceCollection only keeping the ones that may be sampled by the agent.
has_top_level
Return true if the span has a top level key set
is_measured
Returns true if a span should be measured (i.e., it should get trace metrics calculated).
is_partial_snapshot
Returns true if the span is a partial snapshot. This kind of spans are partial images of long-running spans. When incomplete, a partial snapshot has a metric _dd.partial_version which is a positive integer. The metric usually increases each time a new version of the same span is sent by the tracer