sanitizer

package
v1.45.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SanitizeSpan

type SanitizeSpan func(span *model.Span) *model.Span

SanitizeSpan sanitizes/normalizes spans. Any business logic that needs to be applied to normalize the contents of a span should implement this interface.

func NewChainedSanitizer

func NewChainedSanitizer(sanitizers ...SanitizeSpan) SanitizeSpan

NewChainedSanitizer creates a Sanitizer from the variadic list of passed Sanitizers. If the list only has one element, it is returned directly to minimize indirection.

func NewEmptyServiceNameSanitizer added in v1.34.0

func NewEmptyServiceNameSanitizer() SanitizeSpan

NewEmptyServiceNameSanitizer returns a function that replaces empty service name with a string "empty-service-name". If the whole span.Process is null, it creates one with "null-process-and-service-name".

func NewServiceNameSanitizer

func NewServiceNameSanitizer(cache cache.Cache) SanitizeSpan

NewServiceNameSanitizer creates a service name sanitizer.

func NewStandardSanitizers added in v1.34.0

func NewStandardSanitizers() []SanitizeSpan

NewStandardSanitizers are automatically applied by SpanProcessor.

func NewUTF8Sanitizer

func NewUTF8Sanitizer(logger *zap.Logger) SanitizeSpan

NewUTF8Sanitizer creates a UTF8 sanitizer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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