From 8f28ba860a73570acfa10486b8430723bce90eb1 Mon Sep 17 00:00:00 2001 From: Reiley Yang Date: Mon, 25 Oct 2021 13:17:09 -0700 Subject: [PATCH] Metrics SDK - require meter information to be available for exporter (#2040) * Metrics SDK - require meter information to be available for exporter * update changelog --- CHANGELOG.md | 2 ++ specification/metrics/sdk.md | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36e67d49419..69c7451bbd0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/specification/metrics/sdk.md b/specification/metrics/sdk.md index 8b428977e2f..547e21ce92d 100644 --- a/specification/metrics/sdk.md +++ b/specification/metrics/sdk.md @@ -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.