#Is there a way to control which browser metrics is sent ?
10 messages · Page 1 of 1 (latest)
Hey @steady surge can you send me a link to a transaction that shows what's currently happening? I'm a bit confused how vue spans would get this specific origin but we'll figure it out 🙂
And if you don't mind, please also share your Sentry.init setup
Oh one more question: Does this happen in dev mode only or also in prod?
ah, I'm using nuxtjs/sentry plugin. The setup config is
tracing: {
traceSampleRate: 1,
vueOptions: {
trackComponents: false,
tracking: false,
}
}
From going through the code of the nuxt integration, it setups the sentry/vue with expected parameters. I've tried to tweak all the way to sentry-internals but could not remove those measurements.
So it seems like either Vue, Nuxt or nuxtjs/sentry use the browser's perfomance measure API to set these measurements: https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure
Our SDK picks up all of these measurements and reports them as spans.
Just FYI: nuxtjs/sentry is a community maintained SDK and not supported by Sentry
You should be able to filter out any spans you don't like via beforeSendTransaction (or in more recent versions you can also use beforeSendSpan).
Btw: You might want to give our brand new @sentry/nuxt SDK a try. It's an official SDK for Nuxt 3 and we're currently working on it. Gonna move it to Beta this week 🙂