Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opt ¶
type Opt interface {
// contains filtered or unexported methods
}
Opt interface used for setting optional config properties.
func KeyFormatter ¶
KeyFormatter formats a Record's key for use in a span's attributes, overriding the default of string(Record.Key).
This option can be used to parse binary data and return a canonical string representation. If the returned string is not valid UTF-8 or if the formatter returns an error, the key is not attached to the span.
func TracerProvider ¶
func TracerProvider(provider trace.TracerProvider) Opt
TracerProvider takes a trace.TracerProvider and applies it to the Tracer. If none is specified, the global provider is used.
type Tracing ¶
type Tracing struct {
// contains filtered or unexported fields
}
func NewTracing ¶
NewTracing returns a new Tracing that adds opentelemetry tracing to the client.
Click to show internal directories.
Click to hide internal directories.