Skip to content

Commit 02b322b

Browse files
regen with new prefix
1 parent 8aa59e3 commit 02b322b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

ibm-mq-metrics/docs/metrics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -802,14 +802,14 @@
802802

803803

804804

805-
## Metric `mq.connection.errors`
805+
## Metric `ibm.mq.connection.errors`
806806

807807
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
808808
| -------- | --------------- | ----------- | -------------- | --------- |
809-
| `mq.connection.errors` | Counter | `{errors}` | Number of connection errors | ![Development](https://img.shields.io/badge/-development-blue) |
809+
| `ibm.mq.connection.errors` | Counter | `{errors}` | Number of connection errors | ![Development](https://img.shields.io/badge/-development-blue) |
810810

811811

812-
### `mq.connection.errors` Attributes
812+
### `ibm.mq.connection.errors` Attributes
813813

814814
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
815815
|---|---|---|---|---|---|

ibm-mq-metrics/src/integrationTest/java/io/opentelemetry/ibm/mq/integration/tests/WMQMonitorIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ void test_bad_connection() throws Exception {
302302

303303
SumData<LongPointData> connectionErrors = null;
304304
for (MetricData metricData : data) {
305-
if ("mq.connection.errors".equals(metricData.getName())) {
305+
if ("ibm.mq.connection.errors".equals(metricData.getName())) {
306306
connectionErrors = (SumData<LongPointData>) metricData.getData();
307307
}
308308
}

ibm-mq-metrics/src/main/java/io/opentelemetry/ibm/mq/metrics/Metrics.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,9 @@ public static LongGauge createIbmMqManagerMaxHandles(Meter meter) {
422422
.build();
423423
}
424424

425-
public static LongCounter createMqConnectionErrors(Meter meter) {
425+
public static LongCounter createIbmMqConnectionErrors(Meter meter) {
426426
return meter
427-
.counterBuilder("mq.connection.errors")
427+
.counterBuilder("ibm.mq.connection.errors")
428428
.setUnit("{errors}")
429429
.setDescription("Number of connection errors")
430430
.build();

ibm-mq-metrics/src/main/java/io/opentelemetry/ibm/mq/metrics/MetricsConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ public boolean isIbmMqManagerMaxHandlesEnabled() {
199199
return isEnabled("ibm.mq.manager.max.handles");
200200
}
201201

202-
public boolean isMqConnectionErrorsEnabled() {
203-
return isEnabled("mq.connection.errors");
202+
public boolean isIbmMqConnectionErrorsEnabled() {
203+
return isEnabled("ibm.mq.connection.errors");
204204
}
205205

206206
private boolean isEnabled(String key) {

0 commit comments

Comments
 (0)