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 <[email protected]>
  • Loading branch information
gouthamve committed Apr 24, 2024
1 parent c90ff9d commit f3168b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions exporters/autoexport/metrics.go
Original file line number Diff line number Diff line change
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 f3168b9

Please sign in to comment.