Title: Continue traces for Next.js 13 server components · Issue #7179 · getsentry/sentry-javascript · GitHub
Open Graph Title: Continue traces for Next.js 13 server components · Issue #7179 · getsentry/sentry-javascript
X Title: Continue traces for Next.js 13 server components · Issue #7179 · getsentry/sentry-javascript
Description: Problem Statement If a client requests a server component we would like to continue traces if there was an active transaction. Solution Brainstorm Get headers via headers() in server component and just continue the trace. Builds on #7176...
Open Graph Description: Problem Statement If a client requests a server component we would like to continue traces if there was an active transaction. Solution Brainstorm Get headers via headers() in server component and ...
X Description: Problem Statement If a client requests a server component we would like to continue traces if there was an active transaction. Solution Brainstorm Get headers via headers() in server component and ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/7179
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Continue traces for Next.js 13 server components","articleBody":"### Problem Statement\n\nIf a client requests a server component we would like to continue traces if there was an active transaction.\n\n### Solution Brainstorm\n\nGet headers via [`headers()`](https://beta.nextjs.org/docs/api-reference/headers) in server component and just continue the trace. Builds on https://github.com/getsentry/sentry-javascript/issues/7176\r\n\r\nRight now there is a complication though. Next.js uses [AsyncLocalStorage](https://nodejs.org/api/async_context.html#class-asynclocalstorage) to propagate headers without having to explicitly pass them around and up until now I have found no way to call `headers()` from within a wrapper without running into some issue with AsyncLocalStorage.","author":{"url":"https://github.com/lforst","@type":"Person","name":"lforst"},"datePublished":"2023-02-14T14:13:03Z","url":"https://github.com/getsentry/sentry-javascript/issues/7179"}
| 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:902cd0ba-d481-768d-1844-bb18384d4aed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C8C4:C9BDE:187892:20BE71:6B04CB96 |
| html-safe-nonce | fe4d4fa043b845561ad03e677b3e79f3510c09048870f717550b4a7620604b0d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEM0OkM5QkRFOjE4Nzg5MjoyMEJFNzE6NkIwNENCOTYiLCJ2aXNpdG9yX2lkIjoiNDE4Nzk1MTg0Mzk0ODk0MDE4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c4138d1c5da35109620dd7e5bd4878b169152b6727f282eaa531a863acd34363 |
| hovercard-subject-tag | issue:1584241224 |
| 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/7179/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8198b9442e928e571c351aa6ab339206772d1d4608bb6f91002eb54cc413266a/getsentry/sentry-javascript/issues/7179 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8198b9442e928e571c351aa6ab339206772d1d4608bb6f91002eb54cc413266a/getsentry/sentry-javascript/issues/7179 |
| og:image:alt | Problem Statement If a client requests a server component we would like to continue traces if there was an active transaction. Solution Brainstorm Get headers via headers() in server component and ... |
| 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 | 27ed421e5c2dac040a37529b5b9191edcc4a3de70521471e81fb4b4d9dc2aa7d |
| 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 | 63dc19014c621c67306d7899c04c78dcd0d95803 |
| 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