Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
Func is a function that performs enrichment, clean-up, or normalization of trace data.
func NewChainedSanitizer ¶
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.
Click to show internal directories.
Click to hide internal directories.