Documentation ¶
Overview ¶
Package traceutil contains functions for extracting and processing traces. It should only import payload and nothing else.
Index ¶
Constants ¶
View Source
const ( // TraceMetricsKey is a tag key which, if set to true, // ensures all statistics are computed for this span. // [FIXME] *not implemented yet* TraceMetricsKey = "datadog.trace_metrics" )
Variables ¶
This section is empty.
Functions ¶
func ChildrenMap ¶
ChildrenMap returns a map containing for each span id the list of its direct children.
func ComputeTopLevel ¶
ComputeTopLevel updates all the spans top-level attribute.
A span is considered top-level if:
- it's a root span
- its parent is unknown (other part of the code, distributed trace)
- its parent belongs to another service (in that case it's a "local root" being the highest ancestor of other spans belonging to this service and attached to it).
func GetEnv ¶
GetEnv returns the meta value for the "env" key for the first trace it finds or an empty string
func HasForceMetrics ¶
HasForceMetrics returns true if statistics computation should be forced for this span.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.