You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To match .NET client metric names. This commit also removes read/written
bytes metrics because they were no-op. In this client, the AMQP 1.0
protocol is handled by a third-party library. This library does not
expose "hooks" to count reliably the number of bytes read/written.
-**DISCARDED**: Consumer discarded/rejected the message (dead letter)
187
187
-**REQUEUED**: Consumer requeued the message for redelivery
188
188
189
-
#### Network I/O
189
+
#### Network I/O (Optional)
190
+
191
+
**Note**: These metrics are **optional** and may not be supported by all client implementations.
192
+
190
193
```
191
194
writtenBytes(byteCount: int)
192
195
- Called when: Data is written to the network socket
@@ -203,6 +206,8 @@ readBytes(byteCount: int)
203
206
- Note: Cumulative - caller must aggregate
204
207
```
205
208
209
+
> **Go Client Implementation Note:** The Go client does **not** implement `writtenBytes` and `readBytes` metrics due to underlying library limitations. These methods are not present in the Go `MetricsCollector` interface.
210
+
206
211
---
207
212
208
213
## 4. Metric Types and Categories
@@ -237,13 +242,14 @@ These metrics represent **cumulative totals** that only increase:
237
242
| consumed_accepted | Counter | Total messages accepted by consumers | messages |
238
243
| consumed_discarded | Counter | Total messages discarded by consumers | messages |
239
244
| consumed_requeued | Counter | Total messages requeued by consumers | messages |
240
-
| written_bytes | Counter | Total bytes written to network | bytes |
241
-
| read_bytes | Counter | Total bytes read from network | bytes |
245
+
| written_bytes **(optional)**| Counter | Total bytes written to network | bytes |
246
+
| read_bytes **(optional)**| Counter | Total bytes read from network | bytes |
242
247
243
248
**Implementation Notes**:
244
249
- These should monotonically increase
245
250
- Never reset during the lifetime of the application
246
251
- Use thread-safe increment operations
252
+
-**Note**: The `written_bytes` and `read_bytes` metrics are **optional**. Some client implementations (including the Go client) may not support these metrics due to underlying library limitations.
247
253
- For byte metrics, expect very high frequency updates
0 commit comments