Skip to content

fix: correctly propagate the current span to blocking tasks#2061

Merged
kkovaacs merged 2 commits intomainfrom
krisztian/propagate-current-span-to-blocking-tasks
May 7, 2026
Merged

fix: correctly propagate the current span to blocking tasks#2061
kkovaacs merged 2 commits intomainfrom
krisztian/propagate-current-span-to-blocking-tasks

Conversation

@kkovaacs
Copy link
Copy Markdown
Contributor

@kkovaacs kkovaacs commented May 7, 2026

Recent changes that were moving blocking / CPU intensive calls to blocking tasks were not propagating the tracing span correctly.

This PR fixes span propagation by introducing a set of helper functions for spawning blocking tasks that do span propagation correctly.

@kkovaacs kkovaacs added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label May 7, 2026
@kkovaacs kkovaacs marked this pull request as ready for review May 7, 2026 10:37
Copy link
Copy Markdown
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Choose a reason for hiding this comment

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

Thanks. Should we consider adding the tokio methods to the disallowed list in clippy.toml? I think one can still #[allow] them in cases where needed..

@kkovaacs kkovaacs merged commit ce77ca5 into main May 7, 2026
17 checks passed
@kkovaacs kkovaacs deleted the krisztian/propagate-current-span-to-blocking-tasks branch May 7, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants