Interrupt exporter retry backoff sleeps when shutdown is called. Update BatchSpan/LogRecordProcessor.shutdown to complete in 30 seconds by DylanRussell · Pull Request #4638 · open-telemetry/opentelemetry-python

and others added 30 commits

April 30, 2025 17:41

aabmass

@DylanRussell

aabmass

@DylanRussell

@DylanRussell

aabmass

@DylanRussell

@DylanRussell

emdneto

emdneto

Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>

@DylanRussell

…etry-python into shutdown_refactor

@DylanRussell

@DylanRussell

xrmx

xrmx approved these changes Jul 23, 2025

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

Feb 17, 2026
…te BatchSpan/LogRecordProcessor.shutdown to complete in 30 seconds (open-telemetry#4638)

* Initial commit to add timeout as a parm to export, make retries encompass timeout

* Fix lint issues

* Fix a bunch of failing style/lint/spellcheck checks

* Remove timeout param from the export calls.

* Fix flaky windows test ?

* Respond to review comments..

* Delete exponential backoff code that is now unused

* Add changelog and remove some unused imports..

* fix typo and unit test flaking on windows

* Refactor tests, HTTP exporters a bit

* Remove unneeded test reqs

* Remove gRPC retry config

* Tweak backoff calculation

* Lint and precommit

* Empty commit

* Another empty commit

* Calculate backoff in 1 place instead of 2

* Update changelog

* Update changelog

* Make new _common directory in the http exporter for shared code

* precommit

* Make many changes

* Reorder shutdown stuff

* Fix merging

* Don't join the thread in case we are stuck in an individual export call

* Add tests, changelog entry

* Update time assertions to satisfy windows.. Fix lint issues

* Skip test on windows

* Use threading Event instead of sleep loop.

* Respond to review comments..

* Pass remaining timeout to shutdown

* Run precommit

* Change variable names

* Switch timeout back to timeout_millis

* Update CHANGELOG.md

Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>

* Update CHANGELOG.md

Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>

* Rename variable

* Fix variable name

---------

Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>

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

Feb 17, 2026
…te BatchSpan/LogRecordProcessor.shutdown to complete in 30 seconds (open-telemetry#4638)

* Initial commit to add timeout as a parm to export, make retries encompass timeout

* Fix lint issues

* Fix a bunch of failing style/lint/spellcheck checks

* Remove timeout param from the export calls.

* Fix flaky windows test ?

* Respond to review comments..

* Delete exponential backoff code that is now unused

* Add changelog and remove some unused imports..

* fix typo and unit test flaking on windows

* Refactor tests, HTTP exporters a bit

* Remove unneeded test reqs

* Remove gRPC retry config

* Tweak backoff calculation

* Lint and precommit

* Empty commit

* Another empty commit

* Calculate backoff in 1 place instead of 2

* Update changelog

* Update changelog

* Make new _common directory in the http exporter for shared code

* precommit

* Make many changes

* Reorder shutdown stuff

* Fix merging

* Don't join the thread in case we are stuck in an individual export call

* Add tests, changelog entry

* Update time assertions to satisfy windows.. Fix lint issues

* Skip test on windows

* Use threading Event instead of sleep loop.

* Respond to review comments..

* Pass remaining timeout to shutdown

* Run precommit

* Change variable names

* Switch timeout back to timeout_millis

* Update CHANGELOG.md

Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>

* Update CHANGELOG.md

Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>

* Rename variable

* Fix variable name

---------

Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>