Versions in this module Expand all Collapse all v0 v0.12.0 Jul 19, 2026 v0.9.0 May 5, 2026 Changes in this version + func ContextWithHTTPTrace(ctx context.Context, header http.Header) context.Context + func ServerSpan(ctx context.Context, name string, header http.Header, ...) (context.Context, oteltrace.Span) + func SetGlobal(t *Telemetry) + func StartChildSpan(ctx context.Context, name string, attrs ...attribute.KeyValue) (context.Context, oteltrace.Span) + func StartSpan(ctx context.Context, name string, attrs ...attribute.KeyValue) (context.Context, oteltrace.Span) + func TraceLogArgs(ctx context.Context) []any + type Config struct + Endpoint string + Logger *slog.Logger + Mode string + ServiceName string + ServiceVersion string + type Telemetry struct + func Global() *Telemetry + func Setup(ctx context.Context, cfg Config) (*Telemetry, error) + func (t *Telemetry) Shutdown(ctx context.Context) error + func (t *Telemetry) StartChildSpan(ctx context.Context, name string, attrs ...attribute.KeyValue) (context.Context, oteltrace.Span) + func (t *Telemetry) StartServerSpan(ctx context.Context, name string, header http.Header, ...) (context.Context, oteltrace.Span) + func (t *Telemetry) StartSpan(ctx context.Context, name string, attrs ...attribute.KeyValue) (context.Context, oteltrace.Span)