opentelemetry-go icon indicating copy to clipboard operation
opentelemetry-go copied to clipboard

sdk:pool span to reduce impact to application overhead

Open zdyj3170101136 opened this issue 2 years ago • 0 comments

Problem Statement

Currently we allocate a new object when creating a span, this will have harmful impact to garbage-collected language. And in go, the goroutine which allocate more memory will be assited in gc mark stage, this will have negative impact on latency.

Proposed Solution

Use a sync.pool to pool span.

zdyj3170101136 avatar May 09 '22 08:05 zdyj3170101136