Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustProvider ¶
func MustProvider(ctx context.Context, logger logrus.FieldLogger, cfg Config, service, serviceNamespace, stage, serviceInstanceID string) metrics.Provider
MustProvider ensures setting up and starting a otel.Provider succeeds. nolint: lll
Types ¶
type Config ¶
type Config struct { Enabled bool `env:"ENABLE_OTEL_COLLECTION"` CollectorURL *url.URL `env:"OTEL_COLLECTOR_URL"` MetricsDestinations []string `env:"OTEL_METRICS_DESTINATIONS,default=honeycomb,argus"` Honeycomb honeycomb.Config }
Config is a reusable configuration struct that contains the necessary environment variables to setup an metrics.Provider
Click to show internal directories.
Click to hide internal directories.