getsentry / getsentry/sentry-java
Handle Apollo multipart failed-request inspection safely
- 主要言語
- Kotlin
- スター
- 1.4k
- フォーク
- 478
- 平均マージ
- 2日 23時間
- マージ済み PR(30日)
- 67
説明
## 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.
コントリビューションガイド
調査の方向性
Start by reading the sentry-apollo-4 and sentry-apollo-5 integration code to trace failed-request body inspection for multipart and incremental responses. Add tests for streaming behavior and body preservation, including cases where inspection is skipped or unsupported. Done means multipart handling does not buffer, block, or consume the body, while spans and breadcrumbs remain preserved.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- kotlin
- 領域
- api, testing
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100