Skip to content

Handle Apollo multipart failed-request inspection safely #5987

Description

@lbloder

Context

The Apollo 4 and Apollo 5 integrations inspect HTTP response bodies to detect GraphQL errors. Multipart and incremental responses need separate handling so inspection does not buffer, block, or consume streaming bodies.

Scope

  • Define safe failed-request inspection for multipart/incremental responses in sentry-apollo-4 and sentry-apollo-5.
  • Preserve spans and breadcrumbs when body inspection is skipped or unsupported.
  • Decide between skipping failed-request body inspection for multipart responses and parsing multipart parts for GraphQL errors.
  • Add tests covering streaming behavior and body preservation.

WebSocket subscription instrumentation remains out of scope.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions