From b2d37afb59e04e7cb4dec9a346463e3c27e13fbd Mon Sep 17 00:00:00 2001 From: Goutham Date: Wed, 24 Apr 2024 11:46:41 +0200 Subject: [PATCH] Update doc section of NewMetricReader Signed-off-by: Goutham --- exporters/autoexport/metrics.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exporters/autoexport/metrics.go b/exporters/autoexport/metrics.go index 3636f706db0..5b549600832 100644 --- a/exporters/autoexport/metrics.go +++ b/exporters/autoexport/metrics.go @@ -62,6 +62,9 @@ func WithFallbackMetricReader(metricReaderFactory func(ctx context.Context) (met // when OTEL_METRICS_EXPORTER is unset or empty. // // Use [IsNoneMetricReader] to check if the retured exporter is a "no operation" exporter. +// +// OTEL_METRICS_PRODUCERS can be used to configure metric producers; supported values: prometheus, none. +// Use [RegisterMetricProducer] to handle more values of OTEL_METRICS_PRODUCERS. func NewMetricReader(ctx context.Context, opts ...MetricOption) (metric.Reader, error) { return metricsSignal.create(ctx, opts...) }