From 18f8142ad51026d92d39c11811ebc22b5854b9a1 Mon Sep 17 00:00:00 2001 From: Liudmila Molkova Date: Wed, 8 May 2024 21:34:03 -0700 Subject: [PATCH] rename published to produced --- .chloggen/1006.yaml | 2 +- docs/messaging/messaging-metrics.md | 8 ++++---- model/metrics/deprecated/messaging-metrics.yaml | 4 ++-- model/metrics/messaging-metrics.yaml | 6 +++--- schema-next.yaml | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.chloggen/1006.yaml b/.chloggen/1006.yaml index 2f1d90aeae..268c3e27bb 100644 --- a/.chloggen/1006.yaml +++ b/.chloggen/1006.yaml @@ -6,7 +6,7 @@ note: | Support generic operations in messaging rename_metrics: - Deprecate `messaging.operation.type` in favor of now required `messaging.operation.name`. - - Rename `messaging.publish.messages` to `messaging.client.published.messages` + - Rename `messaging.publish.messages` to `messaging.client.produced.messages` - Rename `messaging.process.duration` to `messaging.client.process.duration` - Unify `messaging.publish.duration` and `messaging.receive.duration` into `messaging.client.operation.duration` - Unify `messaging.receive.messages` and `messaging.process.messages` into `messaging.client.consumed.messages` diff --git a/docs/messaging/messaging-metrics.md b/docs/messaging/messaging-metrics.md index c1234a0df4..21b41020c5 100644 --- a/docs/messaging/messaging-metrics.md +++ b/docs/messaging/messaging-metrics.md @@ -9,7 +9,7 @@ - [Common attributes](#common-attributes) - [Metric: `messaging.client.operation.duration`](#metric-messagingclientoperationduration) - [Producer metrics](#producer-metrics) - - [Metric: `messaging.client.published.messages`](#metric-messagingclientpublishedmessages) + - [Metric: `messaging.client.produced.messages`](#metric-messagingclientproducededmessages) - [Consumer metrics](#consumer-metrics) - [Metric: `messaging.client.consumed.messages`](#metric-messagingclientconsumedmessages) - [Metric: `messaging.client.process.duration`](#metric-messagingclientprocessduration) @@ -113,14 +113,14 @@ of `[ 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10 ## Producer metrics -### Metric: `messaging.client.published.messages` +### Metric: `messaging.client.produced.messages` This metric is [required][MetricRequired]. - + | Name | Instrument Type | Unit (UCUM) | Description | Stability | | -------- | --------------- | ----------- | -------------- | --------- | -| `messaging.client.published.messages` | Counter | `{message}` | Measures the number of published messages. | ![Experimental](https://img.shields.io/badge/-experimental-blue) | +| `messaging.client.produced.messages` | Counter | `{message}` | Measures the number of produced messages. | ![Experimental](https://img.shields.io/badge/-experimental-blue) | ## Consumer metrics diff --git a/model/metrics/deprecated/messaging-metrics.yaml b/model/metrics/deprecated/messaging-metrics.yaml index fa4328ac77..bf1e3a2220 100644 --- a/model/metrics/deprecated/messaging-metrics.yaml +++ b/model/metrics/deprecated/messaging-metrics.yaml @@ -42,8 +42,8 @@ groups: - id: metric.messaging.publish.messages type: metric metric_name: messaging.publish.messages - brief: "Deprecated. Use `messaging.client.published.messages` instead." - deprecated: "Replaced by `messaging.client.published.messages`." + brief: "Deprecated. Use `messaging.client.produced.messages` instead." + deprecated: "Replaced by `messaging.client.produced.messages`." stability: experimental instrument: counter unit: "{message}" diff --git a/model/metrics/messaging-metrics.yaml b/model/metrics/messaging-metrics.yaml index cef33f5b50..767b3978f4 100644 --- a/model/metrics/messaging-metrics.yaml +++ b/model/metrics/messaging-metrics.yaml @@ -32,10 +32,10 @@ groups: extends: metric.messaging.attributes # counters - - id: metric.messaging.client.published.messages + - id: metric.messaging.client.produced.messages type: metric - metric_name: messaging.client.published.messages - brief: "Measures the number of published messages." + metric_name: messaging.client.produced.messages + brief: "Measures the number of produced messages." stability: experimental instrument: counter unit: "{message}" diff --git a/schema-next.yaml b/schema-next.yaml index f5ef40a3df..9ee9918105 100644 --- a/schema-next.yaml +++ b/schema-next.yaml @@ -6,7 +6,7 @@ versions: changes: # https://github.com/open-telemetry/semantic-conventions/pull/1006 - rename_metrics: - messaging.publish.messages: messaging.client.published.messages + messaging.publish.messages: messaging.client.produced.messages messaging.process.duration: messaging.client.process.duration # https://github.com/open-telemetry/semantic-conventions/pull/1006 - rename_attributes: