René's URL Explorer Experiment


Title: [v8] Multiple roots detected with manual spans · Issue #12116 · getsentry/sentry-javascript · GitHub

Open Graph Title: [v8] Multiple roots detected with manual spans · Issue #12116 · getsentry/sentry-javascript

X Title: [v8] Multiple roots detected with manual spans · Issue #12116 · getsentry/sentry-javascript

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/...

Open Graph 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 th...

X 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 th...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[v8] Multiple roots detected with manual spans","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/browser\n\n### SDK Version\n\n8.2.1\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\nhttps://codeocean.sentry.io/performance/trace/ee6b9b5549414a8f83fcd71f9f24d054/\n\n### SDK Setup\n\n```javascript\r\nSentry.init({\r\n  dsn: sentrySettings.data('dsn'),\r\n  attachStacktrace: true,\r\n  release: sentrySettings.data('release'),\r\n  environment: sentrySettings.data('environment'),\r\n  autoSessionTracking: true,\r\n  tracesSampleRate: 1.0,\r\n  replaysSessionSampleRate: 0.0,\r\n  replaysOnErrorSampleRate: 1.0,\r\n  integrations: [\r\n        Sentry.browserProfilingIntegration(),\r\n        Sentry.browserTracingIntegration(),\r\n        Sentry.extraErrorDataIntegration(),\r\n        Sentry.httpClientIntegration(),\r\n        Sentry.replayIntegration(),\r\n        Sentry.reportingObserverIntegration(),\r\n        Sentry.sessionTimingIntegration(),\r\n    ],\r\n  profilesSampleRate: 1.0,\r\n  initialScope: scope =>{\r\n      if (current_user) {\r\n          scope.setUser(_.omit(current_user, 'displayname'));\r\n      }\r\n      return scope;\r\n  }\r\n});\r\n```\n\n### Steps to Reproduce\n\nI am trying to add some custom transactions to my frontend code, allowing to gather further insights. With the previous v7 of the SDK, I was able to achieve that:\r\n\r\n\u003cimg width=\"1494\" alt=\"Bildschirmfoto 2024-05-18 um 12 46 32\" src=\"https://github.com/getsentry/sentry-javascript/assets/7300329/6511b9b0-6f0f-4580-bf3c-0a54ec5ccb63\">\r\n\r\nAs shown, the \"run\" transaction might last several seconds, and I want to have it separate for further analysis. In v7 code, I was manually starting a transaction. With v8, I am about to migrate to `Sentry.startSpanManual` with no currently active parent span, so that something formally known as \"transaction\" should be created. \r\n\r\nHowever, my new transactions always keep the same trace ID, even when trying the `forceTransaction` option (see screenshot in \"actual result\"):\r\n\r\n```javascript\r\nconst cause = initiator.data('cause') || initiator.prop('id');\r\nSentry.startSpanManual({ name: cause, op: \"transaction\", forceTransaction: true }, span => {\r\n    callback(span);\r\n});\r\n```\r\n\r\nI already tried passing a new scope (similar to #12000), but without success either. Further, I am not sure what the actual expected behavior should be. When reading #11599, I got the impression that the newly observed behavior is expected (\"All events happening within _one_ route are associated with the trace from the propagation context.\"), but since the Sentry Saas UI still reports the \"multiple root transactions\" error, I am not sure about that.\n\n### Expected Result\n\nEach transaction is shown in a dedicated trace and I can decide to start a new transaction as desired. Specifically, the \"page load\" and my various \"run\" transactions are not merged together. See my above screenshot for my expectation.\n\n### Actual Result\n\nThe initial page load and my custom transactions are grouped in the same trace. Simultaneously, I get a warning about \"[Multiple root transactions have been found with this trace ID.](https://docs.sentry.io/product/sentry-basics/tracing/trace-view/#multiple-roots)\".\r\n\r\n\u003cimg width=\"1497\" alt=\"Bildschirmfoto 2024-05-18 um 12 40 01\" src=\"https://github.com/getsentry/sentry-javascript/assets/7300329/0e2c2ada-eb9e-4e9f-ab03-5ee94535adce\">\r\n","author":{"url":"https://github.com/MrSerth","@type":"Person","name":"MrSerth"},"datePublished":"2024-05-18T10:57:31Z","url":"https://github.com/getsentry/sentry-javascript/issues/12116"}

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:94b3c889-0001-1bae-755a-90bd03cc25eb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE42E:43FF1:2BA01D2:3841B94:6B040656
html-safe-nonce00283fd97bf77f54d09e571d9ca9c3dbd798661311657020b19f8c359c05a29c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDJFOjQzRkYxOjJCQTAxRDI6Mzg0MUI5NDo2QjA0MDY1NiIsInZpc2l0b3JfaWQiOiI5NjU4Njg0OTk0NzYxNTM5NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca5e9bf42841037187cd2eec980fd3a7e2aab2a8653fbb7fa58c7c11ac325d5e5
hovercard-subject-tagissue:2304022125
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/12116/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e29e57264aaf45d25f8f0031fd1ccbe040413734aea30b10ed468e6d902ea016/getsentry/sentry-javascript/issues/12116
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e29e57264aaf45d25f8f0031fd1ccbe040413734aea30b10ed468e6d902ea016/getsentry/sentry-javascript/issues/12116
og:image:altIs 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 th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMrSerth
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/12116#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F12116
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%2F12116
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/12116
Reloadhttps://github.com/getsentry/sentry-javascript/issues/12116
Reloadhttps://github.com/getsentry/sentry-javascript/issues/12116
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues342 (342)https://github.com/getsentry/sentry-javascript/issues
Pull requests60 (60)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/12116
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/12116
[v8] Multiple roots detected with manual spanshttps://github.com/getsentry/sentry-javascript/issues/12116#top
https://github.com/MrSerth
MrSerthhttps://github.com/MrSerth
on May 18, 2024https://github.com/getsentry/sentry-javascript/issues/12116#issue-2304022125
https://github.com/getsentry/sentry-javascript/issueshttps://github.com/getsentry/sentry-javascript/issues
https://docs.sentry.io/https://docs.sentry.io/
https://github.com/getsentry/sentry-javascript/releaseshttps://github.com/getsentry/sentry-javascript/releases
https://codeocean.sentry.io/performance/trace/ee6b9b5549414a8f83fcd71f9f24d054/https://codeocean.sentry.io/performance/trace/ee6b9b5549414a8f83fcd71f9f24d054/
https://private-user-images.githubusercontent.com/7300329/331793781-6511b9b0-6f0f-4580-bf3c-0a54ec5ccb63.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU0MjYxNzksIm5iZiI6MTc5NTQyNTg3OSwicGF0aCI6Ii83MzAwMzI5LzMzMTc5Mzc4MS02NTExYjliMC02ZjBmLTQ1ODAtYmYzYy0wYTU0ZWM1Y2NiNjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjNUMDkyNDM5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTNmMTE4OGRlOTFjMjliMjEyYjg5ZmJmNDgwYmQxNWEwYTYwNGZjZjM5MTE0MWVjN2M1YWI0ZDQwYmFjZDc4OCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.5J5bRKGTTppQVaqaYBEbMkoWBmfGITgTxGprT5JH2rY
#12000https://github.com/getsentry/sentry-javascript/issues/12000
#11599https://github.com/getsentry/sentry-javascript/issues/11599
Multiple root transactions have been found with this trace ID.https://docs.sentry.io/product/sentry-basics/tracing/trace-view/#multiple-roots
https://private-user-images.githubusercontent.com/7300329/331793339-0e2c2ada-eb9e-4e9f-ab03-5ee94535adce.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU0MjYxNzksIm5iZiI6MTc5NTQyNTg3OSwicGF0aCI6Ii83MzAwMzI5LzMzMTc5MzMzOS0wZTJjMmFkYS1lYjllLTRlOWYtYWIwMy01ZWU5NDUzNWFkY2UucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjNUMDkyNDM5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzU1NjYzZDAyMjJjYzM4MWMzZmYxOGVlYTY2OTY5YTFjMDY2NDg0N2ZlYzc3NWMwZTM3Y2Y1ZWNhNGU0NWVkNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.UFGBz3joTZaAqdOa_R_-QHws0TrYKw1V0xmNK9r4g2o
MrSerthhttps://github.com/MrSerth
Type: Bughttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Bug%22
on May 18, 2024https://github.com/getsentry/sentry-javascript/issues/12116#event-12855595649
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on May 18, 2024https://github.com/getsentry/sentry-javascript/issues/12116#event-12855595813
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on May 18, 2024https://github.com/getsentry/sentry-javascript/issues/12116#event-14872734333
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on May 18, 2024https://github.com/getsentry/sentry-javascript/issues/12116
github-actionshttps://github.com/apps/github-actions
Package: browserhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20browser%22
on May 18, 2024https://github.com/getsentry/sentry-javascript/issues/12116#event-12855596120
https://github.com/mydea
mydeahttps://github.com/mydea
on May 21, 2024https://github.com/getsentry/sentry-javascript/issues/12116#issuecomment-2122223424
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on May 21, 2024https://github.com/getsentry/sentry-javascript/issues/12116#event-12877300757
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on May 21, 2024https://github.com/getsentry/sentry-javascript/issues/12116
AbhiPrasadhttps://github.com/AbhiPrasad
Waiting for: Communityhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Community%22
on May 24, 2024https://github.com/getsentry/sentry-javascript/issues/12116#event-12923367519
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on May 24, 2024https://github.com/getsentry/sentry-javascript/issues/12116
https://github.com/MrSerth
MrSerthhttps://github.com/MrSerth
on May 25, 2024https://github.com/getsentry/sentry-javascript/issues/12116#issuecomment-2131459466
dedicated methodhttps://github.com/openHPI/codeocean/blob/c5518bb592aa47650db29ed2cc5b8e1862853dab/app/assets/javascripts/editor/editor.js.erb#L205-L224
MrSerthhttps://github.com/MrSerth
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 25, 2024https://github.com/getsentry/sentry-javascript/issues/12116#event-12933966942
getsantryhttps://github.com/apps/getsantry
Waiting for: Communityhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Community%22
on May 25, 2024https://github.com/getsentry/sentry-javascript/issues/12116#event-12933966968
https://github.com/mydea
mydeahttps://github.com/mydea
on May 27, 2024https://github.com/getsentry/sentry-javascript/issues/12116#issuecomment-2132812315
dedicated methodhttps://github.com/openHPI/codeocean/blob/c5518bb592aa47650db29ed2cc5b8e1862853dab/app/assets/javascripts/editor/editor.js.erb#L205-L224
#12138https://github.com/getsentry/sentry-javascript/pull/12138
MrSerthhttps://github.com/MrSerth
on May 27, 2024https://github.com/getsentry/sentry-javascript/issues/12116#event-12942596722
Refactor `newSentryTransaction` to use improved APIhttps://github.com/openHPI/codeocean/commit/3e73c6505e28e372a1e047ff04b2cffa57a7dc85
3e73c65https://github.com/openHPI/codeocean/commit/3e73c6505e28e372a1e047ff04b2cffa57a7dc85
https://github.com/MrSerth
MrSerthhttps://github.com/MrSerth
on May 27, 2024https://github.com/getsentry/sentry-javascript/issues/12116#issuecomment-2132967593
#12138https://github.com/getsentry/sentry-javascript/pull/12138
PR in our repohttps://github.com/openHPI/codeocean/pull/2322
MrSerthhttps://github.com/MrSerth
on May 28, 2024https://github.com/getsentry/sentry-javascript/issues/12116#event-12952382088
Refactor `newSentryTransaction` to use improved APIhttps://github.com/openHPI/codeocean/commit/4e0cdb2bdd24e3ed355ed4ecd193f80f5794c737
4e0cdb2https://github.com/openHPI/codeocean/commit/4e0cdb2bdd24e3ed355ed4ecd193f80f5794c737
Refactor `newSentryTransaction` to use improved APIhttps://github.com/openHPI/codeocean/commit/a99d86068a38367ed556b0af96aa2520553252e0
a99d860https://github.com/openHPI/codeocean/commit/a99d86068a38367ed556b0af96aa2520553252e0
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/12116
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/12116
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
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.