Back to

Package sanitizer

Latest Go to latest

The latest major version is .

Published: Nov 7, 2019 | License: Apache-2.0 | Module:


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

func NewServiceNameSanitizer

func NewServiceNameSanitizer(cache cache.Cache) SanitizeSpan

NewServiceNameSanitizer creates a service name sanitizer.

func NewUTF8Sanitizer

func NewUTF8Sanitizer(logger *zap.Logger) SanitizeSpan

NewUTF8Sanitizer creates a UTF8 sanitizer.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier