ref(nextjs): Remove all deprecated API#10549
Conversation
size-limit report 📦
|
| startTransactionOnLocationChange: boolean = true, | ||
| shouldInstrumentPageload: boolean, | ||
| shouldInstrumentNavigation: boolean, | ||
| startPageloadSpanCallback: StartSpanCb, |
There was a problem hiding this comment.
l: We can refactor this later, but IMHO we can simplify this by just passing the client in here and directly calling the start span methods from core here?
There was a problem hiding this comment.
I don't follow ^^ Do you mind elaborating? Or do you have examples where we do something similar?
packages/nextjs/src/client/routing/appRouterRoutingInstrumentation.ts
Outdated
Show resolved
Hide resolved
packages/nextjs/src/client/routing/pagesRouterRoutingInstrumentation.ts
Outdated
Show resolved
Hide resolved
| { | ||
| sentryTrace: sentryTraceHeader ?? headers?.get('sentry-trace') ?? undefined, | ||
| baggage: baggageHeader ?? headers?.get('baggage'), | ||
| sentryTrace: headers?.get('sentry-trace') ?? undefined, |
There was a problem hiding this comment.
is this not the same as leaving the ?? undefined away here? (or is it bad if this returns null, not sure if this is possible) - just because we don't do it below :)
There was a problem hiding this comment.
It's a bit ridiculous but continueTrace doesn't take null as sentryTrace value so we need to turn it into undefined. I wanted to change that anyhow. I'll clean this up in a follow-up.
|
@mydea I am blocked to migrate |
Removes all deprecated code from the Next.js package.