Skip to content

Avoid calls to context.detach with None token#3673

Merged
xrmx merged 4 commits intoopen-telemetry:mainfrom
andremm:issue3351
Aug 18, 2025
Merged

Avoid calls to context.detach with None token#3673
xrmx merged 4 commits intoopen-telemetry:mainfrom
andremm:issue3351

Conversation

@andremm
Copy link
Copy Markdown
Member

@andremm andremm commented Aug 4, 2025

Description

This PR is guarding calls to context.detach with if token: to make sure these calls are using a token that is not None.

Fixes #3351

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@andremm andremm requested a review from a team as a code owner August 4, 2025 19:50
@tammy-baylis-swi
Copy link
Copy Markdown
Contributor

Overall lgtm! Please could you add a changelog entry.

@andremm
Copy link
Copy Markdown
Member Author

andremm commented Aug 8, 2025

@tammy-baylis-swi thanks for your review! I added a change a changelog entry.

@emdneto emdneto moved this to Easy to review / merge / close in Python PR digest Aug 11, 2025
@xrmx xrmx enabled auto-merge (squash) August 18, 2025 12:36
@xrmx xrmx merged commit f11f03c into open-telemetry:main Aug 18, 2025
632 checks passed
@github-project-automation github-project-automation Bot moved this from Easy to review / merge / close to Done in Python PR digest Aug 18, 2025
sightseeker added a commit to sightseeker/opentelemetry-python-contrib that referenced this pull request Mar 11, 2026
* fixes open-telemetry#3351

* Add changelog entry about open-telemetry#3673

---------

Co-authored-by: Emídio Neto <[email protected]>
Co-authored-by: Riccardo Magliocchetti <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Evaluate None token passed to context.detach

4 participants