Skip to content

Commit

Permalink
allow passing MetricProducers to MetricReaders via config
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Jul 20, 2023
1 parent dc78006 commit 93b927e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ release.

### Metrics

- Allow passing MetricProducers as config to MetricReaders instead of through RegisterProducer.
([#TODO](https:/open-telemetry/opentelemetry-specification/pull/TODO))

### Logs

### Resource
Expand Down
5 changes: 5 additions & 0 deletions specification/metrics/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,11 @@ If the [MeterProvider](#meterprovider) is an instance of
MeterProvider, but MUST NOT allow multiple [MeterProviders](#meterprovider)
to be registered with the same MetricReader.

MetricReaders MAY accept zero or more MetricProducers during construction
instead of providing the RegisterProducer operation. Provided MetricProducers
are used as a source of of aggregated metric data in subsequent invocations of
Collect.

#### Collect

Collects the metrics from the SDK and any registered
Expand Down

0 comments on commit 93b927e

Please sign in to comment.