Documentation ¶
Overview ¶
Package telemetry is a package that provides a slog.Handler that supports telemetry messages.
Index ¶
- func Float64Counter(ctx context.Context, name string, value float64, attrs ...slog.Attr)
- func Float64Histogram(ctx context.Context, name string, value float64, attrs ...slog.Attr)
- func Int64Counter(ctx context.Context, name string, value int64, attrs ...slog.Attr)
- func Int64Histogram(ctx context.Context, name string, value int64, attrs ...slog.Attr)
- func SpanEnd(ctx context.Context, name string, attrs ...slog.Attr)
- func SpanEvent(ctx context.Context, name string, attrs ...slog.Attr)
- func SpanStart(ctx context.Context, name string, attrs ...slog.Attr) context.Context
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64Counter ¶
Float64Counter logs a float64 counter metric.
func Float64Histogram ¶
Float64Histogram logs a float64 histogram metric.
func Int64Counter ¶
Int64Counter logs an int64 counter metric.
func Int64Histogram ¶
Int64Histogram logs an int64 histogram metric.
Types ¶
type Handler ¶
type Handler interface { slog.Handler WithFloat64Counter(name string, x metric.Float64Counter) WithInt64Counter(name string, x metric.Int64Counter) WithFloat64Histogram(name string, x metric.Float64Histogram) WithInt64Histogram(name string, x metric.Int64Histogram) }
Handler is a handler that supports telemetry messages.
Click to show internal directories.
Click to hide internal directories.