Title: Set Apollo spans to CANCELLED when requests are cancelled · Issue #6193 · getsentry/sentry-java · GitHub
Open Graph Title: Set Apollo spans to CANCELLED when requests are cancelled · Issue #6193 · getsentry/sentry-java
X Title: Set Apollo spans to CANCELLED when requests are cancelled · Issue #6193 · getsentry/sentry-java
Description: Description The Apollo 3, 4, and 5 HTTP interceptors currently handle CancellationException as a generic failure and set the span status to SpanStatus.INTERNAL_ERROR. Cancellation is an expected control-flow outcome rather than an intern...
Open Graph Description: Description The Apollo 3, 4, and 5 HTTP interceptors currently handle CancellationException as a generic failure and set the span status to SpanStatus.INTERNAL_ERROR. Cancellation is an expected co...
X Description: Description The Apollo 3, 4, and 5 HTTP interceptors currently handle CancellationException as a generic failure and set the span status to SpanStatus.INTERNAL_ERROR. Cancellation is an expected co...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/6193
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Set Apollo spans to CANCELLED when requests are cancelled","articleBody":"### Description\n\nThe Apollo 3, 4, and 5 HTTP interceptors currently handle `CancellationException` as a generic failure and set the span status to `SpanStatus.INTERNAL_ERROR`.\n\nCancellation is an expected control-flow outcome rather than an internal error. Detect `CancellationException` explicitly and set the span status to `SpanStatus.CANCELLED`.\n\nThe original exception must still be rethrown so coroutine cancellation semantics remain unchanged.\n\n### Acceptance criteria\n\n- Apollo 3, 4, and 5 interceptors set `SpanStatus.CANCELLED` when request execution throws `CancellationException`.\n- The original exception is rethrown unchanged.\n- Existing `ApolloHttpException` status handling remains unchanged.\n- Unit tests cover cancellation behavior in all three integrations.\n\nSource: https://github.com/getsentry/sentry-java/pull/6074#discussion_r4131186842\n","author":{"url":"https://github.com/lbloder","@type":"Person","name":"lbloder"},"datePublished":"2026-09-29T14:44:48Z","url":"https://github.com/getsentry/sentry-java/issues/6193"}
| 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:b5e579cd-62da-002a-b777-7cbae62a161a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8882:14AF70:16DFC2:1F6B98:6B046594 |
| html-safe-nonce | e4af9d9bbbe80724ba6ded78b0d3dc37d2a2b404ccf4f420caa21479a2515b32 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODgyOjE0QUY3MDoxNkRGQzI6MUY2Qjk4OjZCMDQ2NTk0IiwidmlzaXRvcl9pZCI6Ijg2Nzg1MjUzNDIzMTY3ODI5OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2d748d43d4a29dafdf1d1b019271cb5148c4550e8320b920038c2e307a845593 |
| hovercard-subject-tag | issue:5632371139 |
| 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-java/6193/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a1003ec9ee9b0cf22c27073f76b696a698cb2da2ee0d40d1c2d446888b8254d2/getsentry/sentry-java/issues/6193 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a1003ec9ee9b0cf22c27073f76b696a698cb2da2ee0d40d1c2d446888b8254d2/getsentry/sentry-java/issues/6193 |
| og:image:alt | Description The Apollo 3, 4, and 5 HTTP interceptors currently handle CancellationException as a generic failure and set the span status to SpanStatus.INTERNAL_ERROR. Cancellation is an expected co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lbloder |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| 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