Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
7.110.0
Framework Version
13.2.4
Link to Sentry event
No response
SDK Setup
Sentry.init({
dsn: __YOUR_DSN__,
tracesSampleRate: 0.1,
environment: __YOUR_ENV__,
integrations: [
Sentry.browserTracingIntegration({
beforeStartSpan: (context) => {
console.log(context);
return {
...context,
name: getTransactionName(context),
};
},
}),
],
});
Steps to Reproduce
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
.
This is contrary to what the documentation says.
Metadata
Metadata
Assignees
Type
Projects
Status
Waiting for: Product Owner