Skip to content

Commit

Permalink
Update doc section of NewMetricReader
Browse files Browse the repository at this point in the history
Signed-off-by: Goutham <gouthamve@gmail.com>
  • Loading branch information
gouthamve committed Apr 24, 2024
1 parent c6e6648 commit b2d37af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions exporters/autoexport/metrics.go
Expand Up @@ -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...)
}
Expand Down

0 comments on commit b2d37af

Please sign in to comment.