Closed volker-attempto closed 7 months ago
I have to ask this: Did you trigger a rebuild after you changed the settings and before you ran pnpm run start
?
I have to ask this: Did you trigger a rebuild after you changed the settings and before you ran
pnpm run start
?
Yes, my IDE-button, which runs pnpm run start
does always a pnpm run build
before.
Hi, setting autoSessionTracking: false
in sentry.client.config.ts
works as expected in my test app. No session events are sent. Would you mind providing a minimal reproduction example? Thank you!
(Before that, I recommend deleting your .next
folder once to ensure that no caching or similar swallowed your changes.)
We found the culprit. There was another file included in our _app.tsx
from previous sentry implementation attempts. It called Sentry.init with an incomplete configuration object.
Thank you very much for your help!
I hereby close this ticket.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
7.105.0
Framework Version
7.105.0
Link to Sentry event
No response
SDK Setup
next.config.js
sentry.client.config.ts
Steps to Reproduce
pnpm run start
tracesSampleRate
is set to0.0
pnpm run dev
Expected Result
Respect the configuration files and make requests to sentry.io only in error case.
Actual Result
dev mode seems to obey the "autoSessionTracking: false" instruction, but still sends client reports, whereas prod mode doesn't care about the configuration at all
When debugging, I can see my provided configuration is somewhere in the code:
But the configuration seems to be unavailable / set to defaults at some other point: