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(active-job): Propagate context between enqueue and perform #1132

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

lavoiesl
Copy link
Contributor

@lavoiesl lavoiesl commented Aug 21, 2024

Fixes #1131
Bug introduced in #677

This fixes two issues:

  1. Sets the current context before injecting for propagation
  2. Specify with_parent: parent_context when performing

Those cases were not caught by tests because they were using the "async immediate" queue adapter, which executes within the same thread. It was working by accident.

Added tests that match the report at #1131

Copy link
Collaborator

@arielvalentin arielvalentin left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution.

@arielvalentin arielvalentin merged commit 9927df8 into open-telemetry:main Aug 21, 2024
57 of 58 checks passed
@github-actions github-actions bot mentioned this pull request Aug 19, 2024
@lavoiesl lavoiesl deleted the seb-context-propagation branch August 21, 2024 16:38
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.

active_job: Context propagation is broken
2 participants