Title: feat(tracing) [DSC] Dynamic Sampling Context continuation · Issue #1476 · getsentry/sentry-python · GitHub
Open Graph Title: feat(tracing) [DSC] Dynamic Sampling Context continuation · Issue #1476 · getsentry/sentry-python
X Title: feat(tracing) [DSC] Dynamic Sampling Context continuation · Issue #1476 · getsentry/sentry-python
Description: Describe the idea As a server side platform one python applications instrumented with the Sentry SDK should continue to propagate dynamic sampling context data to all outgoing requests. The SDK should extract Dynamic Sampling Context fro...
Open Graph Description: Describe the idea As a server side platform one python applications instrumented with the Sentry SDK should continue to propagate dynamic sampling context data to all outgoing requests. The SDK sho...
X Description: Describe the idea As a server side platform one python applications instrumented with the Sentry SDK should continue to propagate dynamic sampling context data to all outgoing requests. The SDK sho...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/1476
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(tracing) [DSC] Dynamic Sampling Context continuation","articleBody":"### **Describe the idea**\r\nAs a server side platform one python applications instrumented with the Sentry SDK should continue to propagate dynamic sampling context data to all outgoing requests.\r\n\r\nThe SDK should extract Dynamic Sampling Context from incoming requests, and propagating DSC to downstream SDKs.\r\n\r\n### Requirement:\r\n**When** a Python application receives a request which has baggage attached with sentry values,\r\n**It shall** propagate those same value in further outgoing requests \r\n**so that** contextual data is preserved across the continuation of trace\r\n\r\n_what should be sent?_\r\n\r\n[baggage header](https://develop.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[Trace Envelope Header](https://develop.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 contain all contextual data required for dynamically sampling based on upon the contextual data from the head of the trace.\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.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-23T13:43:01Z","url":"https://github.com/getsentry/sentry-python/issues/1476"}
| 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:33e94066-6cd9-b188-5406-bdec23389e02 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BFE:3C4279:1F9E06:2CE3A5:6B0468E8 |
| html-safe-nonce | f9ca66e803b4321529b42d3ef6dfa0e19dad53cdb9127ffcb79dd8b4bf9047a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkZFOjNDNDI3OToxRjlFMDY6MkNFM0E1OjZCMDQ2OEU4IiwidmlzaXRvcl9pZCI6IjU5Mzg1MjQ0NzMwNjUyMzY3MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fbce4887de9c3cddee2fdd64ba5b281532f8b70734a71181600b0c8e7f629db8 |
| hovercard-subject-tag | issue:1282430213 |
| 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/1476/issue_layout |
| twitter:image | https://opengraph.githubassets.com/279c3bbcfb18a63b546d6acf6f9c51ec9d4f7e239486b4a8614538a840925a96/getsentry/sentry-python/issues/1476 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/279c3bbcfb18a63b546d6acf6f9c51ec9d4f7e239486b4a8614538a840925a96/getsentry/sentry-python/issues/1476 |
| og:image:alt | Describe the idea As a server side platform one python applications instrumented with the Sentry SDK should continue to propagate dynamic sampling context data to all outgoing requests. The SDK sho... |
| 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 | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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