Versions in this module Expand all Collapse all v0 v0.2.0 May 19, 2026 v0.1.0 May 22, 2026 Changes in this version + func FxModule() fx.Option + type Attribute struct + Key string + Value any + func Bool(key string, value bool) Attribute + func Float64(key string, value float64) Attribute + func Int(key string, value int) Attribute + func Int64(key string, value int64) Attribute + func String(key, value string) Attribute + type Carrier interface + Get func(key string) string + Keys func() []string + Set func(key, value string) + type Configuration struct + Enabled bool + Endpoint string + Exporter string + Insecure bool + SampleRatio float64 + ServiceName string + Type string + type ExporterType string + const ExporterNone + const ExporterOTLPGRPC + const ExporterOTLPHTTP + func ParseExporter(s string) ExporterType + type MapCarrier map[string]string + func (m MapCarrier) Get(key string) string + func (m MapCarrier) Keys() []string + func (m MapCarrier) Set(key, value string) + type Option func(*config) + func WithEndpoint(endpoint string) Option + func WithExporter(e ExporterType) Option + func WithHeaders(headers map[string]string) Option + func WithInsecure(insecure bool) Option + func WithResourceAttributes(attrs ...Attribute) Option + func WithSampleRatio(ratio float64) Option + func WithServiceName(name string) Option + func WithType(t TracerType) Option + type Span interface + AddEvent func(name string, attrs ...Attribute) + End func() + IsRecording func() bool + RecordError func(err error, attrs ...Attribute) + SetAttributes func(attrs ...Attribute) + SetStatus func(code StatusCode, description string) + SpanContext func() SpanContext + type SpanContext struct + Remote bool + SpanID string + TraceFlags byte + TraceID string + func (s SpanContext) IsValid() bool + type SpanKind int + const SpanKindClient + const SpanKindConsumer + const SpanKindInternal + const SpanKindProducer + const SpanKindServer + type StartConfig struct + Attributes []Attribute + Kind SpanKind + type StartOption func(*StartConfig) + func WithAttributes(attrs ...Attribute) StartOption + func WithSpanKind(kind SpanKind) StartOption + type StatusCode int + const StatusError + const StatusOK + const StatusUnset + type Tracer interface + Extract func(ctx context.Context, carrier Carrier) context.Context + Inject func(ctx context.Context, carrier Carrier) + Shutdown func(ctx context.Context) error + SpanFromContext func(ctx context.Context) Span + Start func(ctx context.Context, name string, opts ...StartOption) (context.Context, Span) + func New(opts ...Option) (Tracer, error) + type TracerType string + const NoopTracer + const OTelTracer + func ParseType(s string) TracerType