otel

package
v0.0.58 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

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, opts ...otel.Option) 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

Jump to

Keyboard shortcuts

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