From 1d7034531c1e33239e1f2e8afe78fb692f6a2488 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Tue, 19 Dec 2023 10:17:19 -0800 Subject: [PATCH] add optional otel_scope_info configuration for prometheus exporter (#3796) --- CHANGELOG.md | 5 ++++- specification/metrics/sdk_exporters/prometheus.md | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a84b2c15fea..a6490bbbe1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,9 @@ release. ### Metrics +- Add optional configuration for Prometheus exporters to optionally drop `otel_scope_info` metric. + ([#3796](https://github.com/open-telemetry/opentelemetry-specification/pull/3796)) + ### Logs ### Resource @@ -51,7 +54,7 @@ release. ([#3761](https://github.com/open-telemetry/opentelemetry-specification/pull/3761)) - Clarifications and flexibility in Exemplar speicification. ([#3760](https://github.com/open-telemetry/opentelemetry-specification/pull/3760)) -- Add optional configuration for Prometheus exporters to optionally remove unit and type suffixes +- Add optional configuration for Prometheus exporters to optionally remove unit and type suffixes. ([#3777](https://github.com/open-telemetry/opentelemetry-specification/pull/3777)) ### Logs diff --git a/specification/metrics/sdk_exporters/prometheus.md b/specification/metrics/sdk_exporters/prometheus.md index e67df6f4d31..d96c1009319 100644 --- a/specification/metrics/sdk_exporters/prometheus.md +++ b/specification/metrics/sdk_exporters/prometheus.md @@ -37,3 +37,6 @@ or UNIT metadata. The option MAY be named `without_units`, and MUST be `false` b A Prometheus Exporter MAY support a configuration option to produce metrics without a [type suffix](../../compatibility/prometheus_and_openmetrics.md#metric-metadata). The option MAY be named `without_type_suffix`, and MUST be `false` by default. + +A Prometheus Exporter MAY support a configuration option to produce metrics without a [scope info](../../compatibility/prometheus_and_openmetrics.md#instrumentation-scope) +metric. The option MAY be named `without_scope_info`, and MUST be `false` by default.