Skip to content

opentelemetry-sdk: isolate log processor errors - #5872

Closed
huong8373tt-beep wants to merge 1 commit into
open-telemetry:mainfrom
huong8373tt-beep:fix/5841-log-processor-errors
Closed

huong8373tt-beep wants to merge 1 commit into
open-telemetry:mainfrom
huong8373tt-beep:fix/5841-log-processor-errors

Conversation

@huong8373tt-beep

@huong8373tt-beep huong8373tt-beep commented Nov 1, 2026 •

Copy link
Copy Markdown

Summary

  • prevent exceptions from a synchronous log record processor from escaping Logger.emit() or stopping later processors
  • contain concurrent processor task failures before future.result() re-raises them to the caller
  • add regression coverage for both multi-processor implementations and a changelog fragment

Fixes #5841.

Validation

  • PYTHONPATH=opentelemetry-sdk/src;opentelemetry-api/src python -m pytest opentelemetry-sdk/tests/logs/test_multi_log_processor.py -q — 15 passed
  • PYTHONPATH=opentelemetry-sdk/src;opentelemetry-api/src python -m pytest opentelemetry-sdk/tests/logs/test_logs.py -q — 34 passed, 1 skipped (requires os.fork)
  • python -m compileall -q opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py opentelemetry-sdk/tests/logs/test_multi_log_processor.py
  • git diff --check

The commit includes the repository-requested AI assistance disclosure.

Prevent exceptions from one log record processor from reaching the
application or blocking later processors during emission.

Assisted-by: ChatGPT 5.2
@huong8373tt-beep
huong8373tt-beep requested a review from a team as a code owner November 1, 2026 01:38
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Closed · refreshed 2026-11-01 01:49 UTC

Status above doesn't look right?
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[bug] LogRecordProcessor exceptions in on_emit escape and crash the host application

1 participant