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
Describe the bug
The new functional-option call pattern for synchronous metric instruments adds 4 allocations to every former ...attribute.KeyValue call site unless the code can be rewritten.
To Reproduce
New benchmarks will be added (PR T.B.D.)
Expected behavior
When a metrics operation repeats an attribute set that has recently been used, there will be zero allocations even when using a []attribute.KeyValue.
Describe the bug
The new functional-option call pattern for synchronous metric instruments adds 4 allocations to every former
...attribute.KeyValue
call site unless the code can be rewritten.To Reproduce
New benchmarks will be added (PR T.B.D.)
Expected behavior
When a metrics operation repeats an attribute set that has recently been used, there will be zero allocations even when using a
[]attribute.KeyValue
.Additional context
See open-telemetry/opentelemetry-go#4052
The text was updated successfully, but these errors were encountered: