Skip to content

Commit

Permalink
Metrics SDK - require meter information to be available for exporter (o…
Browse files Browse the repository at this point in the history
…pen-telemetry#2040)

* Metrics SDK - require meter information to be available for exporter

* update changelog
  • Loading branch information
reyang authored Oct 25, 2021
1 parent 0f18f33 commit a49a41f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ release.
([#2007](https://github.com/open-telemetry/opentelemetry-specification/pull/2007))
- Add environment variables for Periodic exporting MetricReader.
([#2038](https://github.com/open-telemetry/opentelemetry-specification/pull/2038))
- Specify that the SDK must support exporters to access meter information.
([#2040](https://github.com/open-telemetry/opentelemetry-specification/pull/2040))

### Logs

Expand Down
3 changes: 3 additions & 0 deletions specification/metrics/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,9 @@ Exports a batch of `Metrics`. Protocol exporters that will implement this
function are typically expected to serialize and transmit the data to the
destination.

The SDK MUST provide a way for the exporter to get the [Meter](./api.md#meter)
information (e.g. name, version, etc.) associated with each `Metric`.

`Export` will never be called concurrently for the same exporter instance.
`Export` can be called again only after the current call returns.

Expand Down

0 comments on commit a49a41f

Please sign in to comment.