zipkin

package
v1.35.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 3 Imported by: 70

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainedSanitizer

type ChainedSanitizer []Sanitizer

ChainedSanitizer applies multiple sanitizers in serial fashion

func NewChainedSanitizer

func NewChainedSanitizer(sanitizers ...Sanitizer) ChainedSanitizer

NewChainedSanitizer creates a Sanitizer from the variadic list of passed Sanitizers

func (ChainedSanitizer) Sanitize

func (cs ChainedSanitizer) Sanitize(span *zc.Span) *zc.Span

Sanitize calls each Sanitize, returning the first error

type Sanitizer

type Sanitizer interface {
	Sanitize(span *zc.Span) *zc.Span
}

Sanitizer interface for sanitizing spans. Any business logic that needs to be applied to normalize the contents of a span should implement this interface. TODO - just make this a function

func NewErrorTagSanitizer added in v0.6.0

func NewErrorTagSanitizer() Sanitizer

NewErrorTagSanitizer returns a sanitizer that changes error binary annotations to boolean type and sets appropriate value, in case value was a string message it adds a 'error.message' binary annotation with this message.

func NewParentIDSanitizer

func NewParentIDSanitizer() Sanitizer

NewParentIDSanitizer returns a sanitizer that deals parentID == 0 by replacing with nil, per Zipkin convention.

func NewSpanDurationSanitizer

func NewSpanDurationSanitizer() Sanitizer

NewSpanDurationSanitizer returns a sanitizer that deals with nil or 0 span duration.

func NewSpanStartTimeSanitizer added in v0.7.0

func NewSpanStartTimeSanitizer() Sanitizer

NewSpanStartTimeSanitizer returns a Sanitizer that changes span start time if is nil If there is zipkincore.CLIENT_SEND use that, if no fall back on zipkincore.SERVER_RECV

func NewStandardSanitizers added in v1.34.0

func NewStandardSanitizers() []Sanitizer

NewStandardSanitizers is a list of standard zipkin sanitizers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL