Skip to content

Fix memory increase caused by go tracer

Choose a tag to compare

@cw-balaji cw-balaji released this 15 Jan 09:17
· 19 commits to master since this release
f757f06

Bug: A gradual memory increase was noticed after tracing release.

This bug was caused by a go routine running in golang microservices via consul loop or apigatewayReceiver consul loop. The go routine which was polling consul for every 5min was also creating 2-3 more go routines which were never getting destroyed. These new go routines were part of the otel library caused by trace.NewTracerProvider function call.

The solution was to simply call the function only once in the entire application lifecycle.

What's Changed

Full Changelog: v1.13.2...v1.13.3