mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-20 00:20:47 +00:00
Add .set_skip_when_empty() to all error-path metrics in the tracing module. Tracing itself is not a commonly used feature, making all of these metrics almost always zero: Tier 1 (very rare - corruption/schema issues): - tracing_keyspace_helper::bad_column_family_errors: tracing schema missing or incompatible, should never happen post-bootstrap - tracing::trace_errors: internal error building trace parameters Tier 2 (overload - tracing backend saturated): - tracing::dropped_sessions: too many pending sessions - tracing::dropped_records: too many pending records Tier 3 (general tracing write errors): - tracing_keyspace_helper::tracing_errors: errors during writes to system_traces keyspace Since tracing is an opt-in feature that most deployments rarely use, all five metrics are almost always zero and create unnecessary reporting overhead. AI-Assisted: yes Signed-off-by: Yaniv Kaul <yaniv.kaul@scylladb.com> Closes scylladb/scylladb#29346