You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using any promhttp handler or roundtripper instrumentation middleware, we have a data race if the metric doesn't record code nor method but uses WithLabelFromCtx.
It exists because when we don't record code or method, the labels function returns a pre-created map called emptyLabels.
When using any
promhttp
handler or roundtripper instrumentation middleware, we have a data race if the metric doesn't recordcode
normethod
but usesWithLabelFromCtx
.It exists because when we don't record
code
ormethod
, thelabels
function returns a pre-created map calledemptyLabels
.client_golang/prometheus/promhttp/instrument_server.go
Lines 392 to 399 in 3583c1e
This map is later returned to collect the metrics from the context.
client_golang/prometheus/promhttp/instrument_server.go
Lines 100 to 102 in 3583c1e
This affects all promhttp versions
The text was updated successfully, but these errors were encountered: