census-instrumentation / opencensus-go

A stats collection and distributed tracing framework
http://opencensus.io
Apache License 2.0
2.05k stars 327 forks source link

Passing capacity to make() in place of length. #1276

Closed fayfaychan closed 2 years ago

fayfaychan commented 2 years ago

The second argument is length and not capacity.

Dombo commented 1 year ago

I'm fairly confident this improves the memory footprint/fixes a memory leak happening to any consuming package relying on opencensus-go for generating traces. Great job @fayfaychan!