#Is there a way to control which browser metrics is sent ?

10 messages · Page 1 of 1 (latest)

steady surge
#

Currently on Vue integration, it sends a metrics for almost all Vue components init, render and patch event, ie: vue <VBtn> init. The origin is auto.resource.browser.metrics. How can I define which metrics I want ?

unborn oracle
#

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?

steady surge
#

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.

unborn oracle
#

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 🙂