Skip to content

[BUG]: OOM in BatchSpanProcessor #2787

@50U10FCA7

Description

@50U10FCA7

What happened?

OOM in trace::span_processor_with_async_runtime::BatchSpanProcessor:

.

BatchSpanProcessor adds a span to already overloaded batch which leads to OOM.

Not tested on sync version, but seems like the problem related to both sync and async:

OpenTelemetry API Version / SDK version

Latest release:

opentelemetry = "0.28"
opentelemetry_sdk = "0.28"
opentelemetry-otlp = "0.28"

What Exporter(s) are you seeing the problem on?

OTLP

Relevant log output

Here's the MRE demonstrating the problem: https://github.com/50U10FCA7/otel-oom

P.S. Please fix your "Bug Report" GitHub template:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-traceArea: issues related to tracingbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions