docs: Clarify log processor error handling expectations by cabaret-pro · Pull Request #4915 · open-telemetry/opentelemetry-python

@cabaret-pro @cursoragent

Add documentation to LogRecordProcessor, LogRecordExporter, and
SimpleLogRecordProcessor explaining error handling responsibilities:

- LogRecordProcessor: Clarifies that custom implementations must handle
  exceptions from exporter.export() to prevent application crashes
- LogRecordExporter: Documents that export() may raise exceptions and
  processors are responsible for handling them
- SimpleLogRecordProcessor: Highlights it as a reference implementation
  for proper error handling

This addresses confusion where custom LogRecordProcessor implementations
were not handling exceptions, causing unhandled exceptions to crash
applications when network errors or timeouts occurred during export.

Fixes open-telemetry#4724

Co-authored-by: Cursor <cursoragent@cursor.com>

@cabaret-pro

tammy-baylis-swi

MikeGoldsmith

@cabaret-pro

@cabaret-pro

xrmx

xrmx approved these changes Mar 2, 2026

@xrmx

@xrmx xrmx enabled auto-merge (squash)

March 2, 2026 15:19

@xrmx