Title: feat(tracing) Collect DSC for head of trace · Issue #1479 · getsentry/sentry-python · GitHub
Open Graph Title: feat(tracing) Collect DSC for head of trace · Issue #1479 · getsentry/sentry-python
X Title: feat(tracing) Collect DSC for head of trace · Issue #1479 · getsentry/sentry-python
Description: Describe the idea Applications instrumented with a Sentry SDK should collect and propagate dynamic sampling context data to all outgoing requests and to Sentry. Requirement: When an application has an event which is the head of a trace, ...
Open Graph Description: Describe the idea Applications instrumented with a Sentry SDK should collect and propagate dynamic sampling context data to all outgoing requests and to Sentry. Requirement: When an application has...
X Description: Describe the idea Applications instrumented with a Sentry SDK should collect and propagate dynamic sampling context data to all outgoing requests and to Sentry. Requirement: When an application has...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/1479
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(tracing) Collect DSC for head of trace","articleBody":"### **Describe the idea**\r\nApplications instrumented with a Sentry SDK should collect and propagate dynamic sampling context data to all outgoing requests and to Sentry.\r\n\r\n### Requirement:\r\n**When** an application has an event which is the head of a trace,\r\n**the SDK shall** collect and propagate all possible values in outgoing requests and to Sentry \r\n**so that** contextual data can be propagated in all connected services across the continuation of trace\r\n\r\n_what should be sent?_\r\n\r\n[baggage header](https://develop-b38lax7t3.sentry.dev/sdk/performance/dynamic-sampling-context/#baggage-header)\r\n\r\n- [ ] sentry-trace_id\r\n- [ ] sentry-public_key\r\n- [ ] sentry-sample_rate\r\n- [ ] sentry-release\r\n- [ ] sentry-environment\r\n- [ ] sentry-user_id\r\n- [ ] sentry-user_segment\r\n- [ ] sentry-transaction\r\n\r\n[Envelope Header](https://develop-b38lax7t3.sentry.dev/sdk/performance/dynamic-sampling-context/#envelope-header)\r\n\r\n- [ ] trace_id (string) \r\n- [ ] public_key (string)\r\n- [ ] sample_rate (string) \r\n- [ ] release (string) \r\n- [ ] environment (string) \r\n- [ ] user_id (string) \r\n- [ ] user_segment (string) \r\n- [ ] transaction (string) \r\n\r\n_where should it be sent?_\r\n\r\n- in dynamic sample context (by baggage)\r\n- in the envelope header\r\n- meta data (was/is being done in JS to be check if still necessary)\r\n\r\n_Example:_\r\nHere is an example from the Sentry UI, where the implementation has already begun on the latest versions of the JS SDK. A request from the front end to a down stream applications includes in the request header `baggage`\r\n\r\n\u003cimg width=\"1418\" alt=\"image\" src=\"https://user-images.githubusercontent.com/47563310/175829212-23ca5d8b-4300-475f-8a03-0aae4647066f.png\">\r\n\r\n\r\n### **Why do you think it's beneficial to most of the users**\r\nThis ensures that further downstream applications connected in a distributed trace will receive all contextual data required for dynamically sampling.\r\n\r\n### **Possible implementation**\r\nImplementation has already begun (at the time of this creation) on JS and Android. Refer to the SDK Developer documentation for further information\r\n\r\nFor full up to date requirements according to SDK Developer specifications please see the associated documentation.\r\n\r\n[Dynamic Sampling Context](https://develop-b38lax7t3.sentry.dev/sdk/performance/dynamic-sampling-context/)\r\n\r\nOriginal PR for full context\r\nAdd spec for Dynamic Sampling Context #613\r\n\r\n","author":{"url":"https://github.com/smeubank","@type":"Person","name":"smeubank"},"datePublished":"2022-06-27T07:47:54Z","url":"https://github.com/getsentry/sentry-python/issues/1479"}
| 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:0c781a62-2832-b5bc-4d87-4a4e024c163e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D37A:2B4708:B967F:104E40:6B0418EE |
| html-safe-nonce | f86546b07aa1f12de8e09b1959f20fec4461d132dfce0d65f172dd0d0e5786f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzdBOjJCNDcwODpCOTY3RjoxMDRFNDA6NkIwNDE4RUUiLCJ2aXNpdG9yX2lkIjoiNDU2NDI5NzM0ODIzODU0NzE4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f94abd4eaf595cb369f121fca5d17736ad0fd56d5fac940a7882e83b5e759a29 |
| hovercard-subject-tag | issue:1285391994 |
| 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-python/1479/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c398d8a82f54897324d1115c2c5e01670d9efe3406d1b4387a021750f7d509f2/getsentry/sentry-python/issues/1479 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c398d8a82f54897324d1115c2c5e01670d9efe3406d1b4387a021750f7d509f2/getsentry/sentry-python/issues/1479 |
| og:image:alt | Describe the idea Applications instrumented with a Sentry SDK should collect and propagate dynamic sampling context data to all outgoing requests and to Sentry. Requirement: When an application has... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | smeubank |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| 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