sanitizer

package
v1.64.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

type Func func(traces ptrace.Traces) ptrace.Traces

Func is a function that performs enrichment, clean-up, or normalization of trace data.

func NewChainedSanitizer

func NewChainedSanitizer(sanitizers ...Func) Func

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

func NewEmptyServiceNameSanitizer() Func

NewEmptyServiceNameSanitizer returns a sanitizer function that replaces empty and missing service names with placeholder strings.

func NewStandardSanitizers

func NewStandardSanitizers() []Func

NewStandardSanitizers returns a list of all the sanitizers that are used by the storage exporter.

func NewUTF8Sanitizer

func NewUTF8Sanitizer() Func

NewUTF8Sanitizer returns a sanitizer function that performs the following sanitizations on the trace data:

  • Checks all attributes of the span to ensure that the keys are valid UTF-8 strings and all string typed values are valid UTF-8 strings. If any keys or values are invalid, they are replaced with a valid UTF-8 string containing debugging data related to the invalidations.
  • Explicitly checks that all span names are valid UTF-8 strings. If they are not, they are replaced with a valid UTF-8 string and debugging information is put into the attributes of the span.

Jump to

Keyboard shortcuts

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