Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: re-export WithContext in the same place #2879

Merged

Conversation

scottgerring
Copy link
Contributor

@scottgerring scottgerring commented Mar 28, 2025

Fixes #2862
0.29 maintained with_context, the helper method, but not WithContext the wrapper itself. Some customers may use this directly, and we can re-export it.

For the particular use case identified in #2862 I offered a suggestion that likely avoids the need to depend on this type directly. I've opened this PR out of an abundance of caution, so we have something we can merge back in and potentially do a point release if we want to restore previous behaviour.

Changes

Please provide a brief description of the changes here.

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

@scottgerring scottgerring added the bug Something isn't working label Mar 28, 2025
Copy link

codecov bot commented Mar 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.0%. Comparing base (af3a33e) to head (6741291).
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #2879   +/-   ##
=====================================
  Coverage   81.0%   81.0%           
=====================================
  Files        125     125           
  Lines      23945   23945           
=====================================
  Hits       19413   19413           
  Misses      4532    4532           

☔ View full report in Codecov by Sentry.
📢 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 marked this pull request as ready for review March 28, 2025 14:26
@scottgerring scottgerring requested a review from a team as a code owner March 28, 2025 14:26
Copy link
Member

@cijothomas cijothomas left a comment

Choose a reason for hiding this comment

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

Agree to do .1 release. Can you update changelog for this fix and I can do the release.

Copy link

@nicolasauler nicolasauler left a comment

Choose a reason for hiding this comment

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

thanks mate

@scottgerring
Copy link
Contributor Author

Agree to do .1 release. Can you update changelog for this fix and I can do the release.

@cijothomas I believe you want to do a 0.29.1 with 0.29.0 plus only this fix cherry-picked, so I've added CHANGELOG notes accordingly. LMK if this isn't what you had in mind!

@nicolasauler
Copy link

@scottgerring it seems that there was a problem running the tests (they ran for 360min wow haha)
could you trigger a re-run, please?

@cijothomas cijothomas merged commit 7bdd2f4 into open-telemetry:main Apr 1, 2025
24 checks passed
cijothomas added a commit to cijothomas/opentelemetry-rust that referenced this pull request Apr 1, 2025
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Re-export WithContext (broken in 0.29)
5 participants