span.SetAttributes() even with batching of the attributes in one call from #34, will add them all to the inner s.attributes object one at a time, causing excess growslice calls.
Short description of the changes
Cherry-picks in open-telemetry/opentelemetry-go#4818 for improved performance.
Which problem is this PR solving?
span.SetAttributes()
even with batching of the attributes in one call from #34, will add them all to the inners.attributes
object one at a time, causing excessgrowslice
calls.Short description of the changes