docs: Clarify log processor error handling expectations by cabaret-pro · Pull Request #4915 · open-telemetry/opentelemetry-python
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>
xrmx approved these changes Mar 2, 2026
xrmx
enabled auto-merge (squash)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters