Versions in this module Expand all Collapse all v1 v1.1.0 Dec 4, 2024 Changes in this version + type SpanContext struct + func NewMustSpanContext(spanName string, traceNameOpt ...string) *SpanContext + func NewMustSpanContextWithContext(ctx context.Context, spanName string, traceNameOpt ...string) *SpanContext + func NewSpanContext(spanName string, traceNameOpt ...string) *SpanContext + func NewSpanContextWithContext(ctx context.Context, spanName string, traceNameOpt ...string) *SpanContext + func (s *SpanContext) Done() <-chan struct{} + func (s *SpanContext) End() v1.0.0 Dec 3, 2024 Changes in this version + type Handler struct + Next slog.Handler + func NewHandler(handler slog.Handler, opts ...Options) *Handler + func (h *Handler) Enabled(_ context.Context, _ slog.Level) bool + func (h *Handler) Handle(ctx context.Context, record slog.Record) error + func (h *Handler) WithAttrs(attrs []slog.Attr) slog.Handler + func (h *Handler) WithGroup(name string) slog.Handler + type Options func(*Handler) + func WithNoSpanEvents() Options + func WithSpanEventKey(key string) Options + func WithSpanIDKey(key string) Options + func WithTraceIDKey(key string) Options + func WithTraceLevel(level slog.Level) Options + type Span struct + func NewMustSpan(spanName string) *Span + func NewSpan(spanName string) *Span + func (s *Span) Context() context.Context + func (s *Span) End()