v2.5.7 - More Scala 3 Support & Ignoring Operations
Ignoring Metrics and Spans for Specific Operations
We get asked pretty often: how can we disable sampling for health checks and status endpoints? This Kamon Telemetry version comes with a new setting for that:
kamon.trace.ignored-operations = ["/status", "/health", "/ready"]
This has a few advantages over the groups configuration on the adaptive sampler:
- It works with all samplers, including always and random.
- It comes with a track-metrics-on-ignored-operations setting, which allows disabling metrics for these operations too (the adaptive sampler would only disable sampling but still track metrics for all operations).