Skip to content

fix(sdk): propagate batch shutdown export errors - #3794

Merged
scottgerring merged 2 commits into
open-telemetry:mainfrom
1cbyc:1cbyc/3793-propagate-shutdown-export-errors
Oct 22, 2026
Merged

scottgerring merged 2 commits into
open-telemetry:mainfrom
1cbyc:1cbyc/3793-propagate-shutdown-export-errors

Conversation

@1cbyc

@1cbyc 1cbyc commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Fixes #3793

Changes

  • return the final worker drain result from batch span and log processor shutdown
  • preserve the existing timeout and worker join behavior
  • add regression coverage for final queued exports that fail during shutdown
  • document the user-visible fix in the SDK changelog

Validation

  • cargo test -p opentelemetry_sdk --all-features --lib (416 passed, 25 ignored)
  • cargo clippy -p opentelemetry_sdk --all-targets --all-features -- -Dwarnings
  • cargo fmt --all -- --check
  • git diff --check

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated
  • Appropriate CHANGELOG updated
  • No public API changes

@1cbyc
1cbyc requested a review from a team as a code owner October 15, 2026 23:31
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Merged · refreshed 2026-10-22 05:07 UTC

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

@codecov

codecov Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.3%. Comparing base (02b2f15) to head (18bf39e).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #3794   +/-   ##
=====================================
  Coverage   84.2%   84.3%           
=====================================
  Files        123     123           
  Lines      30484   30519   +35     
=====================================
+ Hits       25686   25728   +42     
+ Misses      4798    4791    -7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@scottgerring scottgerring left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, and complementary to #3791
Thanks for the focussed fix!

@scottgerring
scottgerring added this pull request to the merge queue Oct 22, 2026
Merged via the queue into open-telemetry:main with commit 0fe5989 Oct 22, 2026
32 checks passed
herin049 pushed a commit to herin049/opentelemetry-rust that referenced this pull request Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Batch span and log processors discard export errors during shutdown

2 participants