metrics-rs / metrics

A metrics ecosystem for Rust.
MIT License
1.13k stars 158 forks source link

metrics-tracing-context: add Allowlist label filter #288

Closed look closed 2 years ago

look commented 2 years ago

In many metrics system (for example, Datadog) sending all tags will be cost prohibitive if not impossible. Since filtering metrics tags to a small set of allowed tags is a common requirement, add a LabelFilter to support this easily.

Note: I'm fairly new with Rust, please let me know if there are better ways to implement this.

tobz commented 2 years ago

Thanks again for your contribution!

tobz commented 2 years ago

Released in metrics-tracing-context@v0.11.0.