Title: Add `continueTrace` function · Issue #9011 · getsentry/sentry-javascript · GitHub
Open Graph Title: Add `continueTrace` function · Issue #9011 · getsentry/sentry-javascript
X Title: Add `continueTrace` function · Issue #9011 · getsentry/sentry-javascript
Description: Problem Statement It would be cool for any unsupported frameworks and even for the SDK internally in higher order SDKs to have a function that continues a trace from a sentry-trace and baggage value and starts a new transaction. Solution...
Open Graph Description: Problem Statement It would be cool for any unsupported frameworks and even for the SDK internally in higher order SDKs to have a function that continues a trace from a sentry-trace and baggage valu...
X Description: Problem Statement It would be cool for any unsupported frameworks and even for the SDK internally in higher order SDKs to have a function that continues a trace from a sentry-trace and baggage valu...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/9011
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add `continueTrace` function","articleBody":"### Problem Statement\n\nIt would be cool for any unsupported frameworks and even for the SDK internally in higher order SDKs to have a function that continues a trace from a `sentry-trace` and `baggage` value and starts a new transaction.\n\n### Solution Brainstorm\n\nFunction signature:\r\n```ts\r\ninterface continueTrace\u003cV> {\r\n (traceInformation: { sentryTrace: string, baggage: string }, (tracedTransaction: Transaction) => V): V\r\n}\r\n```\r\n\r\nExample:\r\n```ts\r\nexport function handler(req, res, next) {\r\n return continueTrace({\r\n sentryTrace: req.headers[\"sentry-trace\"],\r\n baggage: req.headers[\"baggage\"]\r\n }, (transaction) => {\r\n transaction.seTag('foo', 'bar');\r\n return next()\r\n });\r\n}\r\n```","author":{"url":"https://github.com/lforst","@type":"Person","name":"lforst"},"datePublished":"2023-09-13T08:59:52Z","url":"https://github.com/getsentry/sentry-javascript/issues/9011"}
| 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:e5acf483-c991-7570-b1a1-af6d7d94038f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C752:29B90A:244158:317172:6B04B72A |
| html-safe-nonce | 65a53d94d8c7e40d0d0e5ff65cdb494aa8b70794ecf95357e0b7f1230fb2956e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzUyOjI5QjkwQToyNDQxNTg6MzE3MTcyOjZCMDRCNzJBIiwidmlzaXRvcl9pZCI6IjI1NDA0MzMyMzEzNjM0ODc1MzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 385a9a79051ba51431e498bb2433596f1f630d059f28359321fea525b8564168 |
| hovercard-subject-tag | issue:1894068405 |
| 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/9011/issue_layout |
| twitter:image | https://opengraph.githubassets.com/87ff144da42209c0ad758b12f9b596e7579f59c5b852a1c5fadbb07f641efc52/getsentry/sentry-javascript/issues/9011 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87ff144da42209c0ad758b12f9b596e7579f59c5b852a1c5fadbb07f641efc52/getsentry/sentry-javascript/issues/9011 |
| og:image:alt | Problem Statement It would be cool for any unsupported frameworks and even for the SDK internally in higher order SDKs to have a function that continues a trace from a sentry-trace and baggage valu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lforst |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| 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 | b032e77f1ea437ede6c115446a0a467709b468e7 |
| 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