Versions in this module Expand all Collapse all v0 v0.0.2 Mar 12, 2025 Changes in this version + const ConfigNameEnableMetrics + const HealthCheckEndpoint + var DefaultBytesDistribution = view.Distribution(64, 128, 256, 512, 1024, 2048, 4096, 16384, 65536, 262144, 1048576) + var DefaultCountDistribution = view.Distribution(1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, ...) + var DefaultMillisecondsDistribution = view.Distribution(0.01, 0.05, 0.1, 0.3, 0.6, 0.8, 1, 2, 3, 4, 5, 6, 8, 10, 13, 16, 20, 25, 30, ...) + func Counter(name string, description string, tags ...tag.Key) *stats.Int64Measure + func Gauge(name string, description string, tags ...tag.Key) *stats.Int64Measure + func HistogramWithBounds(name string, description string, unit string, bounds []float64, ...) *stats.Int64Measure + func NewAlwaysReadyHealthCheck() http.Handler + func NewHealthCheck(probes []func(context.Context) error) http.Handler + func RecordNUnitMeasurement(ctx context.Context, s *stats.Int64Measure, n int64, tags ...tag.Mutator) + func RecordUnitMeasurement(ctx context.Context, s *stats.Int64Measure, tags ...tag.Mutator) + func SetGauge(ctx context.Context, s *stats.Int64Measure, n int64, tags ...tag.Mutator) + func Setup(p Params, b Bindings) error + type Bindings interface + AddCloser func(c func()) + AddCloserErr func(c func() error) + TelemetryHandle func(pattern string, handler http.Handler) + TelemetryHandleFunc func(pattern string, handler func(http.ResponseWriter, *http.Request)) + type Params interface + Config func() config.View + ServiceName func() string