Repository navigation
Conversation
Each data composable call on the server (`useFetch`, `useAsyncData` and the lazy variants) now has a span, as a child of the render span. The spans come from the `nuxt.data` tracing channel of Nuxt. A production build of Nuxt sends the composable name only for `useLazyAsyncData`, so all other spans have the name `useAsyncData`. With span streaming, a key that the app sets is the span description.
s1gr1d
marked this pull request as ready for review
November 27, 2026 14:14
javascript-sdk-gitflow
Bot
requested review from
chargome,
isaacs and
nicohrubec
November 27, 2026 14:15
Contributor
size-limit report 📦Compared: 557bd9e (PR test merge using sig/nuxt-tracing-channel-option at 9ec5dc9) Against: cf84d81 (sig/nuxt-tracing-channel-option) · base run #68198
|
Contributor
Optional E2E testsAll optional checks were successful. 14 successful. See the run. Successful checks
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
On Nuxt >= 4.7, each data composable call on the server (
useFetch,useAsyncDataand the lazy variants) now has a span, as a child of therenderPagespan. WhenuseFetchcalls an API route of the app on the server, the spans of that route are children of this span.functionand the originauto.function.nuxt.data.useLazyAsyncData, so all other calls have the nameuseAsyncData.Why
A trace did not show how long a page waits for its data on the server. Nuxt publishes these calls on its
nuxt.datatracing channel, which the module turns on since #26940.The key is not in the span name, because it can have request data, for example an id.