Versions in this module Expand all Collapse all v0 v0.1.0 May 30, 2026 Changes in this version + var Any = slog.Any + var Bool = slog.Bool + var Duration = slog.Duration + var Float64 = slog.Float64 + var Int = slog.Int + var Int64 = slog.Int64 + var String = slog.String + var Time = slog.Time + var Uint64 = slog.Uint64 + type Attr = slog.Attr + type Counter interface + Add func(ctx context.Context, n int64, attrs ...Attr) + type Gauge interface + Record func(ctx context.Context, v float64, attrs ...Attr) + type Histogram interface + Record func(ctx context.Context, v float64, attrs ...Attr) + type InstrumentConfig struct + Description string + Unit string + func ResolveInstrument(opts ...InstrumentOption) InstrumentConfig + type InstrumentOption func(*instrumentConfig) + func WithDescription(desc string) InstrumentOption + func WithUnit(unit string) InstrumentOption + type Meter interface + Counter func(name string, opts ...InstrumentOption) Counter + Gauge func(name string, opts ...InstrumentOption) Gauge + Histogram func(name string, opts ...InstrumentOption) Histogram + func NopMeter() Meter + type Option func(*Provider) + func WithMeter(m Meter) Option + func WithTracer(t Tracer) Option + type Provider struct + Meter Meter + Tracer Tracer + func Nop() Provider + func (p Provider) Apply(opts ...Option) Provider + type Span interface + End func() + RecordError func(err error) + SetAttributes func(attrs ...Attr) + SetStatus func(code StatusCode, msg string) + type StatusCode int + const StatusError + const StatusOK + const StatusUnset + type Tracer interface + Start func(ctx context.Context, name string, attrs ...Attr) (context.Context, Span) + func NopTracer() Tracer