You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NextJS Sentry is using deprecated beforeNavigate instead of beforeStartSpan #11627
Used configuration from above in sentry.client.config.ts by following the documentation.
Expected Result
Function beforeStartSpan should be called and a log should appear in console when it's called.
Actual Result
Function beforeStartSpan is never called. I suspect it's caused by the weird fixBrowserTracingIntegration method that converts the most recent browser tracing integration to the deprecated one.
What's more, using beforeNavigate actually works, but produces TypeScript errors since it's not defined in BrowserTracingOptions.
So we've just released v7.112.2, where we hopefully actually have a full fix for your problem - sorry about the confusion!
Gonna leave this open this time until I've got confirmation that the issue is actually solved 😅
So we've just released v7.112.2, where we hopefully actually have a full fix for your problem - sorry about the confusion! Gonna leave this open this time until I've got confirmation that the issue is actually solved 😅
From what I can see, beforeStartSpan indeed gets called now 👍
Also, in the big "envelope/..." request I can see that the transaction property got changed in 2 places 👍
Activity
mydea commentedon Apr 17, 2024
Hey, thanks for writing in! Hmm, this seems like a bug to me - we'll look into it!
fix(v7): Ensure next & sveltekit correctly handle `browserTracingInte…
AbhiPrasad commentedon Apr 18, 2024
Fix released with https://github.com/getsentry/sentry-javascript/releases/tag/7.111.0 - please upgrade and give it a try!
mpranjic24 commentedon Apr 19, 2024
Unfortunately it doesn't seem to work, @AbhiPrasad. Nothing gets logged. On a side note, before the fix I could make it work with:
That actually produced some console logs and in Chrome network view I could see that the transaction name got updated.
Now, it seems that it doesn't work at all.
mydea commentedon Apr 24, 2024
I will look into it, it seems that something is really off there, sorry about that!
fix(nextjs|sveltekit/v7): Ensure we can pass `browserTracingIntegrati…
mydea commentedon Apr 24, 2024
So we've just released v7.112.2, where we hopefully actually have a full fix for your problem - sorry about the confusion!
Gonna leave this open this time until I've got confirmation that the issue is actually solved 😅
mpranjic24 commentedon Apr 26, 2024
From what I can see,
beforeStartSpanindeed gets called now 👍Also, in the big "envelope/..." request I can see that the
transactionproperty got changed in 2 places 👍s1gr1d commentedon Apr 29, 2024
This seems to be fixed, so I am closing this 👍