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

Persist parent span context within resource fetchers #2456

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

boyswan
Copy link
Contributor

@boyswan boyswan commented Mar 21, 2024

This PR fixes a loss in parent span context when fetching resources in SSR.

Most notably, calling server_fn in a resource during SSR currently results in a break in span context, and server_fn span runs as a 'sibling' instead of entering as a child.

With this fix the server_fn span will correctly continue as a child of it's caller.

@benwis
Copy link
Contributor

benwis commented Mar 22, 2024

Thanks for continuing your work on this! Keep 'em coming!

@benwis benwis merged commit 0abcc34 into leptos-rs:main Mar 22, 2024
9 of 60 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.

2 participants