Skip to content

Commit 74a1fdb

Browse files
committed
make the counter and gauges function different to reflect what they do
1 parent b45afeb commit 74a1fdb

6 files changed

Lines changed: 14 additions & 59 deletions

File tree

ibm-mq-metrics/docs/metrics.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,3 +834,5 @@
834834
|---|---|---|---|---|---|
835835
| `error.code` | string | The reason code associated with an error | `2038`; `2543`; `2009` | `Required` | ![Development](https://img.shields.io/badge/-development-blue) |
836836
| `ibm.mq.queue.manager` | string | The name of the IBM queue manager | `MQ1` | `Required` | ![Development](https://img.shields.io/badge/-development-blue) |
837+
838+

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public void run(QueueManager queueManager) {
109109
if (e.getCause() instanceof MQException) {
110110
MQException mqe = (MQException) e.getCause();
111111
String errorCode = String.valueOf(mqe.getReason());
112-
producer.recordIbmMqConnectionErrors(
112+
producer.addIbmMqConnectionErrors(
113113
1, Attributes.of(IBM_MQ_QUEUE_MANAGER, queueManagerName, ERROR_CODE, errorCode));
114114
}
115115
} finally {

0 commit comments

Comments
 (0)