feat(http): add error handling for exporting by pafi-code · Pull Request #4709 · open-telemetry/opentelemetry-python

aabmass

emdneto

DylanRussell

emdneto

emdneto

emdneto

DylanRussell

emdneto

DylanRussell

emdneto

@xrmx

@xrmx

xrmx

@xrmx

…try/exporter/otlp/proto/http/_log_exporter/__init__.py

xrmx

@xrmx

xrmx

xrmx approved these changes Jan 20, 2026

@xrmx xrmx enabled auto-merge (squash)

January 20, 2026 16:38

JWinermaSplunk pushed a commit to JWinermaSplunk/opentelemetry-python that referenced this pull request

Feb 17, 2026
* feat(http): add error handling for exporting

* feat(http_exporter): allow to run retry loop on connection errors

* feat(http): change error types that are caught

* refactor(http): introduce variables to unify logging

* feat(http_exporter): only retry on connection error

* test(http_exporter): add test case for connection errors while exporting

* refactor(http): simplify if statements

* docs(changelog): add changes

* fix(http_exporter): use correct class after rebase

* docs(changelog): update changelog

* refactor(http_exporter): add empty space in logs

* docs(tests): remove comments

* refactor(tests): simplify tests

* Update CHANGELOG.md

* Update exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/_log_exporter/__init__.py

* Apply suggestions from code review

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>

JWinermaSplunk pushed a commit to JWinermaSplunk/opentelemetry-python that referenced this pull request

Feb 17, 2026
* feat(http): add error handling for exporting

* feat(http_exporter): allow to run retry loop on connection errors

* feat(http): change error types that are caught

* refactor(http): introduce variables to unify logging

* feat(http_exporter): only retry on connection error

* test(http_exporter): add test case for connection errors while exporting

* refactor(http): simplify if statements

* docs(changelog): add changes

* fix(http_exporter): use correct class after rebase

* docs(changelog): update changelog

* refactor(http_exporter): add empty space in logs

* docs(tests): remove comments

* refactor(tests): simplify tests

* Update CHANGELOG.md

* Update exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/_log_exporter/__init__.py

* Apply suggestions from code review

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>