autometrics-dev / autometrics-shared

Resources used by all of the autometrics implementations
https://autometrics.dev
Apache License 2.0
11 stars 0 forks source link

Exemplar support #18

Closed emschwartz closed 1 year ago

emschwartz commented 1 year ago

Prometheus and OpenTelemetry support attaching exemplars to metrics. It would be useful to provide support for this out of the box with autometrics.

Ideally, we would integrate with whatever popular libraries are used for to add tracing in each language so that we could automatically attach the trace_id to the metrics.

The biggest problem I foresee with this is that exemplars are not well-supported across many of the OpenTelemetry and Prometheus client libraries. We will either need to submit PRs to add support for exemplars upstream, wait until they are added, or support this feature only when autometrics is being used in combination with a metrics library that supports exemplars.

emschwartz commented 1 year ago

Since exemplar support is optional and in a number of cases blocked on upstream support for it in the Prometheus/OpenTelemetry client libraries, I am going to close this issue for now.