
The highest tagged major version is
v2.
package
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Jul 13, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Attribute struct {
Key string
Value any
}
Attribute is a key-value pair for span metadata.
type Span interface {
End()
SetAttributes(kv ...Attribute)
RecordError(err error)
}
Span represents a tracing span that can be ended and annotated.
StartSpan starts a span from the given tracer, falling back to Noop.
Tracer creates new spans.
var Noop Tracer = noopTracer{}
Noop is a Tracer that creates noop spans.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.