logger

package
v0.0.0-...-8aa1e91 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSpanLogValuesProcessorContext

func NewSpanLogValuesProcessorContext(
	ctx context.Context,
	fn SpanLogValuesProcessor,
) context.Context

NewSpanLogValuesProcessorContext will enrich the provided context with the provided spanLogValuesProcessor. It may be useful for any application which depends on dubbo, but wants to for example transform trace/span ids from otel to datadog format.

Types

type SpanLogValuesProcessor

type SpanLogValuesProcessor func(trace.Span) []interface{}

SpanLogValuesProcessor should be a function which process received trace.Span. Returned []]interface{} will be later added as logger values.

func FromSpanLogValuesProcessorContext

func FromSpanLogValuesProcessorContext(ctx context.Context) (SpanLogValuesProcessor, bool)

Jump to

Keyboard shortcuts

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