Sending too much data to sentry

We use sentry to track errors in the application, both server side and client side.

I noticed it’s sending information over every time I view a page. E.g. if I’m on the wall page, and click “Activities”, it’s sending over information (actually making 2 requests).

This is not needed. It’s the same issue as this person reports Sentry sends event every route change - #2 by BYK - #sentry

Which links to the performance part of sentry Performance Monitoring | Sentry Documentation

We don’t use this.

Part of me would actually be inclined to remove sentry entirely so we send no data to third parties, but the error tracking is useful.

We can opt out of that extra sending by setting autoSessionTracking: false. And presumably it’ll still be used for collecting errors.

Here’s an example of the type of thing it sends:

{"sent_at":"2023-06-01T08:03:27.301Z","sdk":{"name":"sentry.javascript.vue","version":"7.50.0"}}
{"type":"session"}
{"sid":"184884223cbc450f8211537dece036a4","init":false,"started":"2023-06-01T08:03:24.339Z","timestamp":"2023-06-01T08:03:27.301Z","status":"exited","errors":0,"attrs":{"release":"b7b00c3d7aebb91a6e13024c4813718aa85394ac","environment":"karrot-dev","user_agent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0"}}

This is implemented on https://dev.karrot.world now, and will be available in the next release :slight_smile: