-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transaction starts after beforeEach is resolved when vueRouterInstrumentation is present #4072
Comments
Hello hello! |
one more for this one! any updates here - at least a workaround would be nice! |
It has been one nearly one year and no response here... pretty poor for a paid product. Lets convert this into a what are alternatives to sentry thread? |
@ydennisy indeed, it's a shame. I have 3 written assurances that this problem was going to be fixed in "a few weeks" but we are approaching the anniversary of it.. I'm not gonna lie, I love Sentry, have been using it for 5 years in multiple projects and it helped me a lot to discover issues. If you are not going to fix it, don't pretend that you will and make me wait for 10 months and do multiple follow ups. |
Hi @ydennisy and @laygir apologies I didn't come across this issue when I was working on improving a few things around the Vue instrumentations.
For We released this change in 7.16.0. Would you mind giving the SDK a try with a version >= 7.16.0?
I'm curious if this still applies, as we're starting In other news, we're also experimenting with #5750 (first PR was opened up a few days ago). We don't have a particular timeline yet but it might be worth trying this out when it's ready. Hope this helps a little and again, sorry for the delays. |
I change in 7.20.0 and resolved。But the LCP and CLS data is disappeared。I don't know if it is related to this issue: #4683 |
We leverage the web vitals library to report LCP and CLS info so there are a couple of things that might be happening here.
Generally we can only report values that are occuring during a running transaction (pageload/navigation), so if the metric triggers after the transaction we cannot record it. With #5750 being worked on, we'll add more auto-instrumentation, making it more likely that these values will get attached to an active transaction. |
Given we've fixed this issue with #5983 and it was confirmed to be fixed by @LeoMelody, I'll be closing this issue. Please don't hesitate to open a new issue if anything else comes up. Thanks! |
OK. I'll try this.Thanks! |
Package + Version
@sentry/vue: 6.13.3
@sentry/tracing: 6.13.3
Version:
Description
I have an XHR request on the
beforeEach
hook of Vue Router.When
vueRouterInstrumentation
is enabled pageload or navigation transaction starts afterbeforeEach
resolved, causing the the XHR requests in beforeEach to NOT havesentry-trace
header.When
vueRouterInstrumentation
is disabled, then pageload transaction starts beforebeforeEach
and the request has thesentry-trace
header present as expected.But then when navigated to a new page, navigation transaction again starts after
beforeEach
causing requests to not be included in the transaction..So it seems like using
vueRouterInstrumentation
takes some things away while adding some other things..Is this the intentional/expected behaviour, I'm not sure and if so, what would you suggest to solve this?
For example wouldn't it be possible to start the navigation transaction on the
beforeEach
hook?Eventually my goal is to have all my api calls traced. I've to say I'm a bit surpised that automatic instrumentation does not pick up individual xhr requests unless there is an active transaction.
Here's sandbox
https://codesandbox.io/s/sentry-tracing-beforeeach-7j8g6?file=/src/main.js
Thanks!
Update:
Noticed here transaction is already being started on
beforeEach
hook.https://github.com/getsentry/sentry-javascript/blob/master/packages/vue/src/router.ts#L36
Is this the result of a merge strategy behaviour?
The text was updated successfully, but these errors were encountered: