Data race in otelgrpc.StatsHandler #4576
Labels
area: instrumentation
Related to an instrumentation package
bug
Something isn't working
instrumentation: otelgrpc
Milestone
Description
The problem seems to stem from inconsistent usage of the members of
gRPCContext
. Writes to the fields are performed viaatomic.AddInt64
, however reads of the variables do not useatomic.LoadInt64
.Environment
otelgrpc
version: v0.46.0Expected behavior
Converting from the now deprecated interceptors to the new stats handler should produce the same traces without any data races occurring.
The text was updated successfully, but these errors were encountered: