opentelemetry-go
opentelemetry-go copied to clipboard
sdk:pool span to reduce impact to application overhead
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.