package
3.3.55
Repository: https://github.com/signalfx/golib.git
Documentation: pkg.go.dev

# Functions

FromBytes returns a Map or an error nolint:nilerr.
GetSpanFilterMapFromContext is a target for spanumsink.SinkFunc to be turned into a spanumsink.Sink.
GetSpanFilterMapOrNew is a target for spanumsink.SinkFunc to be turned into a spanumsink.Sink.
IsInvalid returns false if it's a Map with no invalid entries or nil, else true.
IsMap returns whether an error is an instance of Map.
ReturnInvalidOrError returns nil for a valid SpanFilter, an invalid SpanFilter or an error containing the bytes.
WithSpanFilterContext gives you a request with the Map set.

# Constants

InvalidSpanID has either the wrong length, or does not contain hex digits.
InvalidTraceID has either the wrong length, or does not contain hex digits.
NilOperationName when no localendpoint.name is provided.
NilServiceName when no localendpoint.name is provided.
OK valid spans.
RequiredTagMissing means the span was missing a required tag.
SpanTooLargeDropped means a span size was over limits and was dropped.
TooManySpansInTrace when we find an abusive number of spans for a given traceID.
ZeroStartTime when the star time of the span is 0.
ZeroTraceID when the traceid bytes are all zero.
ZipkinV2BinaryAnnotations are not allowed.

# Structs

Map is the response we return from ingest wrt our span endpoint It contains the number of spans that were valid, and a map of string reason to spanIds for each invalid span nolint:errname.