fix(client): report counter overflows clearly

This commit is contained in:
Nils Andreas Svee committed 2026-05-10 20:56:43 +07:00
1 parent b8d16f3d18
commit ef18bb549c
3 files changed
+65 -9

No files matched your search

+2
View File
@@ -49,6 +49,8 @@ pub enum ClientError {
AlreadyClosed,
#[error("duration is too large to encode as nanoseconds")]
DurationOverflow,
#[error("counter {counter} overflowed")]
CounterOverflow { counter: &'static str },
#[error("pending probe limit exceeded ({limit})")]
PendingLimitExceeded { limit: usize },
#[error("invalid configuration: {reason}")]