Versions in this module Expand all Collapse all v1 v1.24.5 Aug 14, 2025 Changes in this version + const LabelGracefulLifecycle + const LabelPid + const LabelPpid + const LabelProcessDescription + const LabelProcessType + const TraceAttrDbSQL + const TraceAttrFuncCaller + const TraceAttrGitCommand + const TraceAttrHTTPRoute + const TraceSpanDatabase + const TraceSpanGitRun + const TraceSpanHTTP + func EnableBuiltinTracer(threshold time.Duration) + type EventConfig struct + type EventOption interface + func WithAttributes(attrs ...*TraceAttribute) EventOption + type TraceAttribute struct + Key string + Value TraceValue + type TraceSpan struct + func GetContextSpan(ctx context.Context) *TraceSpan + func (s *TraceSpan) AddEvent(name string, options ...EventOption) + func (s *TraceSpan) End() + func (s *TraceSpan) RecordError(err error, options ...EventOption) + func (s *TraceSpan) SetAttributeString(key, value string) *TraceSpan + func (s *TraceSpan) SetName(name string) + func (s *TraceSpan) SetStatus(code uint32, desc string) + type TraceValue struct + func (t *TraceValue) AsFloat64() float64 + func (t *TraceValue) AsInt64() int64 + func (t *TraceValue) AsString() string + type Tracer struct + func GetTracer() *Tracer + func (t *Tracer) Start(ctx context.Context, spanName string) (context.Context, *TraceSpan) + func (t *Tracer) StartInContext(ctx mutableContext, spanName string) (*TraceSpan, func())