metrics

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

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

func ReportPanic(metricsProvider xmetrics.Provider)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL