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

Exemplar support #41

Closed emschwartz closed 1 year ago

emschwartz commented 1 year ago

Looks like this might be blocked waiting on upstream support:

actualwitch commented 1 year ago

This PR partially resolves the issue - for now exemplars are only supported in prometheus client, but for people who enable that backend for autometrics-py we expose a AUTOMETRICS_EXEMPLARS env var you can use to enable them in autometrics itself.

emschwartz commented 1 year ago

@actualwitch I think we can consider this done for now and potentially open another issue for later about supporting exemplars with OpenTelemetry whenever they add support for the feature upstream