Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitOTLPExporter ¶
func InitOTLPExporter(ctx context.Context, componentName, componentInstance string, gatherer prometheus.Gatherer) (func(context.Context) error, error)
InitOTLPExporter initializes OpenTelemetry Protocol (OTLP) exporter if OTEL_EXPORTER_OTLP_ENDPOINT environment variable is set. This allows metrics to be exported to an OTLP collector while keeping Prometheus scraping unchanged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.