Documentation ¶
Index ¶
- func GetCarrier(ctx context.Context) map[string]string
- func InitTracer(opts *TracerOpts) (func(context.Context) error, error)
- func NewSpan(ctx context.Context, name string) (context.Context, trace.Span)
- func NewSpanWithCarrier(ctx context.Context, name string, carrier map[string]string) (context.Context, trace.Span)
- func WithAttributes(span trace.Span, attrs ...AttributeKV)
- type AttributeKV
- type AttributeKey
- type TracerOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTracer ¶
func InitTracer(opts *TracerOpts) (func(context.Context) error, error)
func NewSpanWithCarrier ¶ added in v0.43.1
func WithAttributes ¶
func WithAttributes(span trace.Span, attrs ...AttributeKV)
Types ¶
type AttributeKV ¶
type AttributeKV struct { Key AttributeKey Value any }
AttributeKV is a wrapper for otel attributes KV
type AttributeKey ¶
type AttributeKey string
Click to show internal directories.
Click to hide internal directories.