Documentation
¶
Overview ¶
Package tracing provides lightweight distributed tracing for the CLI execution path.
Unlike full OTel, this uses a simple span-based model that flows through Cobra command context without external dependencies. Suitable for local debugging and production diagnostics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Span ¶
type Span struct {
Name string
Start time.Time
End time.Time
Duration time.Duration
Error error
Attrs map[string]string
Children []*Span
// contains filtered or unexported fields
}
Span represents a single operation in a trace.
func StartSpanFromContext ¶
StartSpanFromContext creates a root span, using the trace from context. If no trace is in context, creates and returns a detached span.
Click to show internal directories.
Click to hide internal directories.