Documentation ¶
Index ¶
Constants ¶
View Source
const ( // InvalidSpanID has either the wrong length, or does not contain hex digits InvalidSpanID = "invalidSpanID" // InvalidTraceID has either the wrong length, or does not contain hex digits InvalidTraceID = "invalidTraceID" // ZipkinV2BinaryAnnotations are not allowed ZipkinV2BinaryAnnotations = "zipkinV2BinaryAnnotations" // NilServiceName when no localendpoint.name is provided NilServiceName = "nilServiceName" // ZeroTraceID when the traceid bytes are all zero ZeroTraceID = "zeroTraceID" // ZeroStartTime when the star time of the span is 0 ZeroStartTime = "zeroStartTime" // TooManySpansInTrace when we find an abusive number of spans for a given traceID TooManySpansInTrace = "tooManySpansInTrace" // NilOperationName when no localendpoint.name is provided NilOperationName = "nilOperationName" // RequiredTagMissing means the span was missing a required tag RequiredTagMissing = "requiredTagMissing" )
View Source
const (
// OK valid spans
OK = "ok"
)
Variables ¶
This section is empty.
Functions ¶
func GetSpanFilterMapFromContext ¶
GetSpanFilterMapFromContext is a target for spanumsink.SinkFunc to be turned into a spanumsink.Sink
func ReturnInvalidOrError ¶
ReturnInvalidOrError returns nil for a valid SpanFilter, an invalid SpanFilter or an error containing the bytes
Types ¶
type Map ¶
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
func GetSpanFilterMapOrNew ¶
GetSpanFilterMapOrNew is a target for spanumsink.SinkFunc to be turned into a spanumsink.Sink
func (*Map) CheckInvalid ¶
CheckInvalid is a nil safe check if this SpanFilter contains invalid keys
Click to show internal directories.
Click to hide internal directories.