getsentry / getsentry/sentry-java

Add a flag to `SentryApolloInterceptor` to stop attaching tracing headers for Apollo v2

Open
#5,726 2 comments 0 reactions 0 assignees View on GitHub
Java Platform: Java
Dominant language
Kotlin
Stars
1.4k
Forks
478
Avg merge
2d 23h
Merged PRs (30d)
67

Description

### Description

There's no URL available before the request goes out in our Apollo v2 integration. We're attaching tracing headers without checking against `tracePropagationTargets`.

We could:
- add an opt-out flag to disable this (recommended)
- remove trace headers from Apollo v2

Contributor guide

Open the contributing guide

Research direction

Start at SentryApolloInterceptor and inspect the Apollo v2 request path, especially how tracing headers are attached without a URL. Confirm the intended opt-out behavior from the issue description, then add coverage for the flag and verify that the headers are absent when it is enabled; done means Apollo v2 supports the documented opt-out without affecting other behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.