Versions in this module Expand all Collapse all v0 v0.1.1 Jan 13, 2026 v0.1.0 Jan 12, 2026 Changes in this version + type Option func(opts *spanOptions) + func WithEndCallback(callback func(*Span)) Option + type Span struct + func New(name string, traceID string, parent *Span, opts ...Option) *Span + func (s *Span) AddEvent(e *event.Event) + func (s *Span) Attributes() []*attribute.Attribute + func (s *Span) Children() []*Span + func (s *Span) Duration() time.Duration + func (s *Span) End() + func (s *Span) EndTime() time.Time + func (s *Span) Events() []*event.Event + func (s *Span) Name() string + func (s *Span) Parent() *Span + func (s *Span) RecordError(err error) + func (s *Span) SetAttributes(attrs ...*attribute.Attribute) + func (s *Span) SetStatusCode(code status.Code) + func (s *Span) SpanID() string + func (s *Span) StartTime() time.Time + func (s *Span) StatusCode() status.Code + func (s *Span) TraceID() string