-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Package: vueIssues related to the Sentry Vue SDKIssues related to the Sentry Vue SDK
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/vue
SDK Version
7.79.0
Framework Version
7.79.0
Link to Sentry event
No response
SDK Setup
import { App } from 'vue';
import * as Sentry from '@sentry/vue';
function installSentry(Vue: App) {
Sentry.init({
Vue,
attachProps: true,
logErrors: true,
tracingOptions: {
hooks: ['destroy', 'mount', 'update'],
trackComponents: true,
},
// ... other stuff, not relevant
});
}Steps to Reproduce
- Configure the Vue integration with
'destroy'in thehooks.
Expected Result
- No warnings are logged when
@vue/compatis installed. - Destroy span tracking works on Vue 3 when
@vue/compatis not installed
Actual Result
Observe that no spans are created for unmounting.
Bonus:
If @vue/compat is installed to provide Vue 2.x support to a Vue 3.x runtime and the OPTIONS_BEFORE_DESTROY and OPTIONS_DESTROYED flags are turned on, the spans are probably created, but these warnings are logged on every single component (assuming Sentry is initialized in a context where vue warnings are enabled):
Metadata
Metadata
Assignees
Labels
Package: vueIssues related to the Sentry Vue SDKIssues related to the Sentry Vue SDK
Projects
Status
No status
