Environment variable to set metrics producers #4015
Labels
area:configuration
Related to configuring the SDK
sig-issue
A specific SIG should look into this before discussing at the spec
spec:metrics
Related to the specification/metrics directory
What are you trying to achieve?
I was trying to use the
autoexport
package in Golang SDK which configures the exporting and SDK through the environment variables in semantic conventions.However, I needed to add the Prometheus metrics producer and there was no way to do it when using autoexport.
I'd like to propose a new environment variable
OTEL_METRICS_PRODUCERS
where users can pass comma separated producer values.Additional context.
open-telemetry/opentelemetry-go-contrib#5281 has an implementation of this environment variable. cc @dashpole @pellared
I know there is a moratorium on new environment variables, but I'd like to atleast merge the above PR as EXPERIMENTAL to unblock my use-case.
The text was updated successfully, but these errors were encountered: