Closed vmignot closed 10 months ago
Default metrics don't really have exemplars as they're never e.g. request bound - so there are no trace or span IDs to use. I think this is expected?
Default metrics don't really have exemplars as they're never e.g. request bound - so there are no trace or span IDs to use. I think this is expected?
Ho, I see, my bad in that case!
Thanks for the clarification!
I'm trying to enable exemplars on
collectDefaultMetrics
, but without much success.Here is a snippet of code (v15.1.0) :
Then when requesting my
/metrics
, no exemplars are set on my counters or histoDo I have to inject the
traceId
andspanId
myself at some point? Am I missing something, or do I have to use a custom registry for that purpose?Thanks!