beam-telemetry / telemetry_metrics_prometheus_core

Core Prometheus Telemetry.Metrics Reporter package for telemetry_metrics_prometheus
Apache License 2.0
35 stars 30 forks source link

Add exception handling when formatting labels #18

Closed bryannaegele closed 4 years ago

bryannaegele commented 4 years ago

It is possible for labels to have values which do not have the String.Chars protocol implemented, such as Ecto structs. If one of these values is encountered, the entire scrape is unable to be processed.

We should add exception handling around this operation, logging a warning that it occured, and continuing on with the export.