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
A possible better option is to actually implement stats.Handler (which was designed for this) instead of unary/streaming interceptors. The stats handlers have all the lengths pre-calculated and available.
I have created #3168 to remove the attribute for the time being. I agree that the stats.Handler interface looks like it is the correct way to go in the longer term, but I do not know when such an implementation can be created.
The opentelemetry collector otlpreceiver consume lots of cpu for proto.Size, marshal to buffer, get buffer size.
related open-telemetry/opentelemetry-collector#6947
I think it shoud try get size from asserting interface
Size() int
, then try to use proto.SizeThe text was updated successfully, but these errors were encountered: