Skip to content

Collector: init memory allocation investigation, need to upgrade ottl #1828

Open
@maxday

Description

@maxday

Similarly to #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: open-telemetry/opentelemetry-collector-contrib#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions