Skip to content

opentelemetry-sdk-trace: BatchLogRecordProcessor does not handle non-runtime exceptions #8528

Description

@EvgeniiR

Describe the bug
This is essentially the same issue as #4348 . Issue was fixed for BatchSpanProcessor, but still present in BatchLogRecordProcessor.
TLDR: Custom exporter throwing non-runtime exception will kill the worker thread

Steps to reproduce
Custom LogRecordExporter throw non-runtime exception (new test in the attched PR reproduces the issue)

What did you expect to see?
Error log and processor continues working

What did you see instead?
Only RuntimeExceptions are catched

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions