You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Set Apollo spans to CANCELLED when requests are cancelled #6193
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 internal error. Detect CancellationException explicitly and set the span status to SpanStatus.CANCELLED.
The original exception must still be rethrown so coroutine cancellation semantics remain unchanged.
Acceptance criteria
Apollo 3, 4, and 5 interceptors set SpanStatus.CANCELLED when request execution throws CancellationException.
The original exception is rethrown unchanged.
Existing ApolloHttpException status handling remains unchanged.
Unit tests cover cancellation behavior in all three integrations.
Activity
linear-code commentedon Sep 29, 2026
JAVA-757