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

Collector: init memory allocation investigation, need to upgrade ottl

Open maxday opened this issue 7 months ago • 2 comments

Similarly to https://github.com/open-telemetry/opentelemetry-lambda/issues/1827, I noticed that ottl init phase is responsible for quite some overhead in time and memory allocation.

init github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl @4.9 ms, 2.4 ms clock, 1965848 bytes, 13390 allocs

As you can see it this memory profile, those allocation are from the parser initializations. I created a PR upstream to fix it by initialization them on demand, this way users won't pay the overhead at cold start if they're not using it. Link to the upstream PR: https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/40254

Image

This issue is created to track the progress on the upstream PR and not to forget to bump the dependency is merged/released.

maxday avatar May 23 '25 22:05 maxday

upstream PR has been approved :) and should be merged soon

maxday avatar Jun 09 '25 23:06 maxday

upstream PR has been merged, will follow-up with bumping when it will be released

maxday avatar Jun 10 '25 16:06 maxday