Title: Baggage creation breaks external APIs · Issue #1717 · getsentry/sentry-python · GitHub
Open Graph Title: Baggage creation breaks external APIs · Issue #1717 · getsentry/sentry-python
X Title: Baggage creation breaks external APIs · Issue #1717 · getsentry/sentry-python
Description: How do you use Sentry? Self-hosted/on-premise Version 1.10.1 Steps to Reproduce I just spent literal 5 hours debugging a very weird issue in our production system. A specific API call to an external system started to return an error code...
Open Graph Description: How do you use Sentry? Self-hosted/on-premise Version 1.10.1 Steps to Reproduce I just spent literal 5 hours debugging a very weird issue in our production system. A specific API call to an externa...
X Description: How do you use Sentry? Self-hosted/on-premise Version 1.10.1 Steps to Reproduce I just spent literal 5 hours debugging a very weird issue in our production system. A specific API call to an externa...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/1717
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Baggage creation breaks external APIs","articleBody":"### How do you use Sentry?\n\nSelf-hosted/on-premise\n\n### Version\n\n1.10.1\n\n### Steps to Reproduce\n\nI just spent literal 5 hours debugging a very weird issue in our production system. A specific API call to an external system started to return an error code 400.\r\n\r\nAfter a long search, I could pinpoint the change to our recent upgrade of sentry-sdk, and specifically to this pull request: https://github.com/getsentry/sentry-python/pull/1589\r\n\r\nStarting from 1.9.8, Sentry will add a ``Baggage`` request to all external HTTP targets we call with ``requests.get()`` by default. I'm sure this is really helpful when calling internal systems that are also sentry-instrumented, but in our case we happen to call an external API that happens to break when it sees that header.\r\n\r\nOur temporary solution is now to set ``propagate_traces=False``, which is sad, because it also breaks propagation to useful targets (such as celery). We'd very much appreciate a more detailed way to configure this.\n\n### Expected Result\n\nSentry is not modifying requests to external APIs **by default**.\n\n### Actual Result\n\nSentry is adding a ``Baggage`` header to requests to external APIs even though we never asked for it.","author":{"url":"https://github.com/raphaelm","@type":"Person","name":"raphaelm"},"datePublished":"2022-10-31T13:13:40Z","url":"https://github.com/getsentry/sentry-python/issues/1717"}
| 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:e90c36e3-c0c7-bb4a-7de5-2ac27fc889ae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A9A:3786D0:310867F:3F72C13:6B041B93 |
| html-safe-nonce | 6b6305b860d1f445dd888f282a85587e306ec4e2f61b2d00f7590607989115c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTlBOjM3ODZEMDozMTA4NjdGOjNGNzJDMTM6NkIwNDFCOTMiLCJ2aXNpdG9yX2lkIjoiNDcxNDkxMjcwMzAyODkyNzM3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8f46e3bb5e93a75d124ee7ca30457f90ec4f79c4a5e0578f5a1534ea9451a868 |
| hovercard-subject-tag | issue:1429828421 |
| 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/1717/issue_layout |
| twitter:image | https://opengraph.githubassets.com/53fd869197d9b83857eae7065e906865f1961fdac308e74f04ec087ca2929621/getsentry/sentry-python/issues/1717 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/53fd869197d9b83857eae7065e906865f1961fdac308e74f04ec087ca2929621/getsentry/sentry-python/issues/1717 |
| og:image:alt | How do you use Sentry? Self-hosted/on-premise Version 1.10.1 Steps to Reproduce I just spent literal 5 hours debugging a very weird issue in our production system. A specific API call to an externa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | raphaelm |
| 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