autometrics-dev / autometrics-py

Easily add metrics to your code that actually help you spot and debug issues in production. Built on Prometheus and OpenTelemetry.
https://autometrics.dev
Apache License 2.0
214 stars 7 forks source link

Warn library users if they use anything other than alphanumeric characters, `_`, `-`, or a space for objective names #98

Closed brettimus closed 9 months ago

brettimus commented 10 months ago

In accordance with the autometrics v1 spec, we could add a warning when people assign objective names with wonky characters.

(This was to ensure that links in external tools like the autometrics explorer would still get escaped properly. I had issues when I named an objective with parentheses and percentages in it)