René's URL Explorer Experiment


Title: Transaction starts after beforeEach is resolved when vueRouterInstrumentation is present · Issue #4072 · getsentry/sentry-javascript · GitHub

Open Graph Title: Transaction starts after beforeEach is resolved when vueRouterInstrumentation is present · Issue #4072 · getsentry/sentry-javascript

X Title: Transaction starts after beforeEach is resolved when vueRouterInstrumentation is present · Issue #4072 · getsentry/sentry-javascript

Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javascript/releases Package + Version @sentry...

Open Graph Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...

X Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/4072

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Transaction starts after beforeEach is resolved when vueRouterInstrumentation is present","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [x] Review the documentation: https://docs.sentry.io/\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [x] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\n\r\n## Package + Version\r\n\r\n- [x] `@sentry/vue: 6.13.3`\r\n- [x] `@sentry/tracing: 6.13.3`\r\n\r\n### Version:\r\n\r\n```\r\n@sentry/vue: 6.13.3\r\n@sentry/tracing: 6.13.3\r\n```\r\n\r\n## Description\r\n\r\nI have an XHR request on the `beforeEach` hook of Vue Router.\r\n\r\nWhen `vueRouterInstrumentation` is enabled pageload or navigation transaction starts after `beforeEach` resolved, causing the the XHR requests in beforeEach to NOT have `sentry-trace` header.\r\n\r\nWhen `vueRouterInstrumentation` is disabled, then pageload transaction starts before `beforeEach` and the request has the `sentry-trace` header present as expected.\r\n\r\nBut then when navigated to a new page, navigation transaction again starts after `beforeEach` causing requests to not be included in the transaction..\r\n\r\nSo it seems like using `vueRouterInstrumentation` takes some things away while adding some other things..\r\n\r\nIs this the intentional/expected behaviour, I'm not sure and if so, what would you suggest to solve this?\r\nFor example wouldn't it be possible to start the navigation transaction on the `beforeEach` hook?\r\n\r\nEventually 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.\r\n\r\nHere's sandbox\r\nhttps://codesandbox.io/s/sentry-tracing-beforeeach-7j8g6?file=/src/main.js\r\n\r\nThanks!\r\n\r\n---\r\nUpdate:\r\n\r\nNoticed here transaction is already being started on `beforeEach` hook.\r\nhttps://github.com/getsentry/sentry-javascript/blob/master/packages/vue/src/router.ts#L36\r\n\r\nIs this the result of a merge strategy behaviour?","author":{"url":"https://github.com/laygir","@type":"Person","name":"laygir"},"datePublished":"2021-10-17T19:41:05Z","url":"https://github.com/getsentry/sentry-javascript/issues/4072"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8cfa8cc1-9bf8-ad44-ec9e-6f31651d8532
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9756:1CE302:1ECF05:298B4D:6B04312B
html-safe-nonce3fdb0b079e2a996b84d0e1b9b98ac25efc5e85339e1b99d913dc7a6b169de78d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzU2OjFDRTMwMjoxRUNGMDU6Mjk4QjREOjZCMDQzMTJCIiwidmlzaXRvcl9pZCI6IjYxOTM3NTIwMzI3NTE2NjEzNTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf36fbca2e1416833fe60cfac1ac2a82baab0db2be59a0f4913aa9fe3aff66a7a
hovercard-subject-tagissue:1028418834
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/4072/issue_layout
twitter:imagehttps://opengraph.githubassets.com/954c5afcaf9b811997bf906ac54582684902d5bde30e32494074e4a1adfb0a7b/getsentry/sentry-javascript/issues/4072
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/954c5afcaf9b811997bf906ac54582684902d5bde30e32494074e4a1adfb0a7b/getsentry/sentry-javascript/issues/4072
og:image:altReview the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelaygir
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/4072#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F4072
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F4072
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/4072
Reloadhttps://github.com/getsentry/sentry-javascript/issues/4072
Reloadhttps://github.com/getsentry/sentry-javascript/issues/4072
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues341 (341)https://github.com/getsentry/sentry-javascript/issues
Pull requests55 (55)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/4072
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/4072
Transaction starts after beforeEach is resolved when vueRouterInstrumentation is presenthttps://github.com/getsentry/sentry-javascript/issues/4072#top
https://github.com/laygir
laygirhttps://github.com/laygir
on Oct 17, 2021https://github.com/getsentry/sentry-javascript/issues/4072#issue-1028418834
https://docs.sentry.io/https://docs.sentry.io/
https://github.com/getsentry/sentry-javascript/issueshttps://github.com/getsentry/sentry-javascript/issues
https://github.com/getsentry/sentry-javascript/releaseshttps://github.com/getsentry/sentry-javascript/releases
https://codesandbox.io/s/sentry-tracing-beforeeach-7j8g6?file=/src/main.jshttps://codesandbox.io/s/sentry-tracing-beforeeach-7j8g6?file=/src/main.js
https://github.com/getsentry/sentry-javascript/blob/master/packages/vue/src/router.ts#L36https://github.com/getsentry/sentry-javascript/blob/master/packages/vue/src/router.ts#L36
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Oct 17, 2021https://github.com/getsentry/sentry-javascript/issues/4072#event-5474644309
iker-barriocanalhttps://github.com/iker-barriocanal
Feature: Performancehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Feature%3A%20Performance%22
Package: vuehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20vue%22
Status: As Designedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20As%20Designed%22
Type: Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Improvement%22
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Oct 20, 2021https://github.com/getsentry/sentry-javascript/issues/4072#event-5490942977
AbhiPrasadhttps://github.com/AbhiPrasad
Status: Backloghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Backlog%22
Status: As Designedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20As%20Designed%22
on Oct 28, 2021https://github.com/getsentry/sentry-javascript/issues/4072#event-5535661070
https://github.com/laygir
laygirhttps://github.com/laygir
on Feb 22, 2022https://github.com/getsentry/sentry-javascript/issues/4072#issuecomment-1047840068
vladanpaunovichttps://github.com/vladanpaunovic
Type: Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
Type: Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Improvement%22
on Feb 23, 2022https://github.com/getsentry/sentry-javascript/issues/4072#event-6124755246
https://github.com/ydennisy
ydennisyhttps://github.com/ydennisy
on May 19, 2022https://github.com/getsentry/sentry-javascript/issues/4072#issuecomment-1132167805
https://github.com/ydennisy
ydennisyhttps://github.com/ydennisy
on Aug 19, 2022https://github.com/getsentry/sentry-javascript/issues/4072#issuecomment-1220872368
https://github.com/laygir
laygirhttps://github.com/laygir
on Aug 24, 2022https://github.com/getsentry/sentry-javascript/issues/4072#issuecomment-1225492865
@ydennisyhttps://github.com/ydennisy
https://github.com/Lms24
Lms24https://github.com/Lms24
on Nov 17, 2022https://github.com/getsentry/sentry-javascript/issues/4072#issuecomment-1318261612
@ydennisyhttps://github.com/ydennisy
@laygirhttps://github.com/laygir
#5983https://github.com/getsentry/sentry-javascript/pull/5983
transactions in our beforeEach handlerhttps://github.com/getsentry/sentry-javascript/blob/0ee35f070927b47a37270d6037a3f004f3bce492/packages/vue/src/router.ts#L103-L113
#5750https://github.com/getsentry/sentry-javascript/issues/5750
https://github.com/LeoMelody
LeoMelodyhttps://github.com/LeoMelody
on Nov 17, 2022https://github.com/getsentry/sentry-javascript/issues/4072#issuecomment-1318686432
#4683https://github.com/getsentry/sentry-javascript/issues/4683
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Nov 21, 2022https://github.com/getsentry/sentry-javascript/issues/4072#issuecomment-1322531296
web vitalshttps://github.com/GoogleChrome/web-vitals
idleTimeouthttps://docs.sentry.io/platforms/javascript/performance/instrumentation/automatic-instrumentation/#idletimeout
only the final LCP value is capturedhttps://github.com/GoogleChrome/web-vitals#report-the-value-on-every-change
#5750https://github.com/getsentry/sentry-javascript/issues/5750
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Nov 21, 2022https://github.com/getsentry/sentry-javascript/issues/4072#issuecomment-1322538001
#5983https://github.com/getsentry/sentry-javascript/pull/5983
@LeoMelodyhttps://github.com/LeoMelody
AbhiPrasadhttps://github.com/AbhiPrasad
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 21, 2022https://github.com/getsentry/sentry-javascript/issues/4072#event-7860498252
https://github.com/LeoMelody
LeoMelodyhttps://github.com/LeoMelody
on Nov 29, 2022https://github.com/getsentry/sentry-javascript/issues/4072#issuecomment-1330027455
web vitalshttps://github.com/GoogleChrome/web-vitals
idleTimeouthttps://docs.sentry.io/platforms/javascript/performance/instrumentation/automatic-instrumentation/#idletimeout
only the final LCP value is capturedhttps://github.com/GoogleChrome/web-vitals#report-the-value-on-every-change
#5750https://github.com/getsentry/sentry-javascript/issues/5750
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/4072
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/4072
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.