Title: Sentry.getCurrentScope().setTransactionName(name) not having any effect · Issue #14663 · getsentry/sentry-javascript · GitHub
Open Graph Title: Sentry.getCurrentScope().setTransactionName(name) not having any effect · Issue #14663 · getsentry/sentry-javascript
X Title: Sentry.getCurrentScope().setTransactionName(name) not having any effect · Issue #14663 · getsentry/sentry-javascript
Description: Self-Hosted Version 24.9.0 CPU Architecture arm64 Docker Version 27.3.1, build ce12230 Docker Compose Version 2.29.7 Steps to Reproduce I have an node.js express route that has two main branches within it, and the chosen branch to go dow...
Open Graph Description: Self-Hosted Version 24.9.0 CPU Architecture arm64 Docker Version 27.3.1, build ce12230 Docker Compose Version 2.29.7 Steps to Reproduce I have an node.js express route that has two main branches wi...
X Description: Self-Hosted Version 24.9.0 CPU Architecture arm64 Docker Version 27.3.1, build ce12230 Docker Compose Version 2.29.7 Steps to Reproduce I have an node.js express route that has two main branches wi...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/14663
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sentry.getCurrentScope().setTransactionName(name) not having any effect","articleBody":"### Self-Hosted Version\n\n24.9.0\n\n### CPU Architecture\n\narm64\n\n### Docker Version\n\n27.3.1, build ce12230\n\n### Docker Compose Version\n\n2.29.7\n\n### Steps to Reproduce\n\nI have an node.js express route that has two main branches within it, and the chosen branch to go down is based on what is passed into the incoming request. The two branches are quite different and would benefit from being regarded within Sentry as two different transactions.\n\nI have tried calling the following soon after the code branches, to override the transaction name:\n\n`Sentry.getCurrentScope().setTransactionName('branchA');`\n\nand\n\n`Sentry.getCurrentScope().setTransactionName('branchB');`\n\nBut... I'm not seeing these two transaction names anywhere in my data... in Performance for example I'm just seeing the `GET /myRoute` transaction but not separate `branchA` and `branchB` transactions.\n\nWhat am I doing wrong? So far as I can tell I'm just doing what [the docs are telling me to do](https://docs.sentry.io/platforms/javascript/guides/node/enriching-events/transaction-name/).\n\n### Expected Result\n\nSee above.\n\n### Actual Result\n\nSee above.\n\n### Event ID\n\n_No response_","author":{"url":"https://github.com/drmrbrewer","@type":"Person","name":"drmrbrewer"},"datePublished":"2024-11-25T23:27:09Z","url":"https://github.com/getsentry/sentry-javascript/issues/14663"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c0e57005-1ff2-2be0-61dc-4cf61cf8a1a5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9884:146A3D:43A5BCF:59FDE66:6B040C8B |
| html-safe-nonce | 5675c6e57889c7d9d259355e1125b0df72b43ffa4383613a72ac9d483679ead0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODg0OjE0NkEzRDo0M0E1QkNGOjU5RkRFNjY6NkIwNDBDOEIiLCJ2aXNpdG9yX2lkIjoiMjYzNzU5ODI1MDczMTA0ODA3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3c324aa5db37a840bbe6429617a9d58598907039e89fba9d4e948b2f13b4a38c |
| hovercard-subject-tag | issue:2732890228 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/14663/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3003a36608545ff63e2e9bcd989c2eb15972bbff01325197cfd3cf0665b0528e/getsentry/sentry-javascript/issues/14663 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3003a36608545ff63e2e9bcd989c2eb15972bbff01325197cfd3cf0665b0528e/getsentry/sentry-javascript/issues/14663 |
| og:image:alt | Self-Hosted Version 24.9.0 CPU Architecture arm64 Docker Version 27.3.1, build ce12230 Docker Compose Version 2.29.7 Steps to Reproduce I have an node.js express route that has two main branches wi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | drmrbrewer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width