Open pksorensen opened 2 months ago
I have also noticed these next.bubble
spans today in my Google Cloud Trace explorer as I've been setting up OTel. Been a pretty rough ride getting it working.
Can also add that I am not using i18n, but I am using a basic Auth.js middleware setup.
Link to the code that reproduces this issue
https://github.com/pksorensen/nextjs-repro-otel
To Reproduce
Current vs. Expected behavior
It is emiting this wierd trace with
next.bubble | true
which seems related to old bug https://github.com/vercel/next.js/issues/55752 where i dont fully get what is going on atThe expected trace is there also which has all the childs,
so either that first one /da/ should be a child of /[locale] or not there at all ?
I think its related to also that middleware does not run with the same traceid that the request is doing.
I added
to the middleware and can inspect that the traceparent set in cookie from within the middleware is totally different from those in the above request (either of the two base requests)
Provide environment information
Which area(s) are affected? (Select all that apply)
Internationalization (i18n), Middleware
Which stage(s) are affected? (Select all that apply)
next dev (local), next start (local), Other (Deployed)
Additional context
No response