Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Enabled bool `env:"ENABLE_OTEL_COLLECTION"` EnableRuntimeMetrics bool `env:"OTEL_ENABLE_RUNTIME_METRICS,default=false"` CollectorURL *url.URL `env:"OTEL_COLLECTOR_URL"` MetricsDestinations []string `env:"OTEL_METRICS_DESTINATIONS,default=honeycomb;argus"` Honeycomb honeycomb.Config // EndpointURL maps to the official opentelemetry environment variable for configuring the endpoint EndpointURL *url.URL `env:"OTEL_EXPORTER_OTLP_ENDPOINT"` }
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.