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(otel): don't throw when calling setActiveSpan at root #28323

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

lucacasonato
Copy link
Member

@lucacasonato lucacasonato commented Feb 27, 2025

When calling setActiveSpan at the module root, or with options.root = true, the function would internally throw.

Fixes bug reported in #28321 (comment).

Fixes #28268

When calling `setActiveSpan` at the module root, or with `options.root = true`, the function would internally throw.
@lucacasonato lucacasonato requested a review from devsnek February 27, 2025 14:48
@lucacasonato lucacasonato merged commit aa55efa into main Feb 27, 2025
18 checks passed
@lucacasonato lucacasonato deleted the otel_start_active_span branch February 27, 2025 17:47
littledivy pushed a commit that referenced this pull request Mar 5, 2025
When calling `setActiveSpan` at the module root, or with `options.root =
true`, the function would internally throw.
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.

OTEL root context is undefined by default
3 participants