Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SanitizeSpan ¶
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(c 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.