package
0.9.0
Repository: https://github.com/datadog/datadog-agent.git
Documentation: pkg.go.dev

# Functions

APITrace returns an APITrace from t, as required by the Datadog API.
ChildrenMap returns a map containing for each span id the list of its direct children.
ComputeTopLevel updates all the spans top-level attribute.
GetEnv returns the first "env" tag found in trace t.
GetMeta gets the metadata value in the span Meta map.
GetMetaDefault gets the metadata value in the span Meta map and fallbacks to fallback.
GetRoot extracts the root span from a trace.
HasTopLevel returns true if span is top-level.
IsMeasured returns true if a span should be measured (i.e., it should get trace metrics calculated).
NormalizeName normalizes a span name and returns an error describing the reason (if any) why the name was modified.
NormalizeService normalizes a span service and returns an error describing the reason (if any) why the name was modified.
NormalizeTag applies some normalization to ensure the tags match the backend requirements.
SetMeta sets the metadata at key to the val on the span s.
SetMetric sets the metric at key to the val on the span s.
SetTopLevel sets the top-level attribute of the span.
TruncateResource truncates a span's resource to the maximum allowed length.
TruncateUTF8 truncates the given string to make sure it uses less than limit bytes.
UpdateTracerTopLevel sets _top_level tag on spans flagged by the tracer.

# Constants

DefaultServiceName is the default name we assign a service if it's missing and we have no reasonable fallback.
DefaultSpanName is the default name we assign a span if it's missing and we have no reasonable fallback.
MaxMetaKeyLen the maximum length of metadata key.
MaxMetaValLen the maximum length of metadata value.
MaxMetricsKeyLen the maximum length of a metric name key.
MaxNameLen the maximum length a name can have.
MaxServiceLen the maximum length a service can have.

# Variables

ErrEmpty specifies that the passed input was empty.
ErrInvalid signifies that the input was invalid.
ErrTooLong signifies that the input was too long.
MaxResourceLen the maximum length the resource can have.