Skip to content

Fix threading instrumentation context types #3322

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

Merged
merged 5 commits into from
Mar 6, 2025

Conversation

jomcgi
Copy link
Contributor

@jomcgi jomcgi commented Mar 3, 2025

Description

Add None check to context handling in threading instrumentation
Add testcases for None context

Fixes #3321

Type of change

Please delete options that are not relevant.

  • 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

  • tox -e typecheck
  • tox -e test-instrumentation-threading

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

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

@jomcgi jomcgi changed the title [WIP] Fix threading instrumentation contexxt types [WIP] Fix threading instrumentation context types Mar 3, 2025
@jomcgi jomcgi force-pushed the bug-3321/fix-threading-types branch from a2297f4 to f3c7738 Compare March 3, 2025 16:40
@jomcgi jomcgi changed the title [WIP] Fix threading instrumentation context types Fix threading instrumentation context types Mar 3, 2025
@jomcgi jomcgi marked this pull request as ready for review March 3, 2025 17:30
@jomcgi jomcgi requested a review from a team as a code owner March 3, 2025 17:30
@aabmass
Copy link
Member

aabmass commented Mar 3, 2025

Once #3304 is merged, can you merge in main and then revert 46282d4? Sorry for the inconvenience

Add None check to context handling in threading instrumentation
Add testcases for None context
@jomcgi jomcgi force-pushed the bug-3321/fix-threading-types branch from bbd12c9 to 257c8dc Compare March 3, 2025 21:11
@xrmx xrmx requested a review from emdneto March 5, 2025 09:13
@aabmass aabmass merged commit ad2fe81 into open-telemetry:main Mar 6, 2025
712 checks passed
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: typecheck failing in main
4 participants