Documentation
¶
Overview ¶
Package metrics provides helpers for setting up metrics reporting.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReportPanic ¶ added in v0.0.59
ReportPanic attempts to report a panic via the metrics provider.
Types ¶
type Config ¶
type Config struct {
ReportInterval time.Duration `env:"METRICS_REPORT_INTERVAL,default=60s"`
Source string `env:"METRICS_SOURCE"`
Prefix string `env:"METRICS_PREFIX"`
DefaultTags []string `env:"METRICS_DEFAULT_TAGS"`
// If OTEL is enabled, l2met is disabled, by default.
// Setting this value to `true` overrides that default.
L2MetOverrideEnabled bool `env:"METRICS_ENABLE_L2MET_OVERRIDE"`
OTEL otel.Config
}
Config stores all the env related config to bootstrap metrics.
Click to show internal directories.
Click to hide internal directories.