Skip to content

Commit 2ae63eb

Browse files
authored
Update Apollo3.mdx for Java to match the one for Android (#7165)
1 parent 5d318b7 commit 2ae63eb

File tree

1 file changed

+6
-4
lines changed
  • src/platforms/java/common/performance/instrumentation

1 file changed

+6
-4
lines changed

src/platforms/java/common/performance/instrumentation/apollo3.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ notSupported:
1010

1111
<Note>
1212

13-
Capturing transactions requires that you first <PlatformLink to="/performance/">set up performance monitoring</PlatformLink> if you haven't already.
13+
To be able to capture transactions, you'll need to first <PlatformLink to="/performance/">set up performance monitoring</PlatformLink>.
1414

1515
</Note>
1616

17-
Sentry Apollo3 integration provides the `SentryApollo3Interceptor` and the `SentryApollo3HttpInterceptor`, which create a span for each outgoing HTTP request executed with an [Apollo Kotlin](https://github.com/apollographql/apollo-kotlin) GraphQL client. For easier usage, the integration also provides extension functions on the `ApolloClient.Builder`.
17+
Sentry's Apollo3 integration provides both the `SentryApollo3Interceptor` and the `SentryApollo3HttpInterceptor`, which create a span for each outgoing HTTP request executed with an [Apollo Kotlin](https://github.com/apollographql/apollo-kotlin) GraphQL client. The integration also provides extension functions on the `ApolloClient.Builder`.
1818

1919
## Install
2020

21+
To install Apollo3:
22+
2123
```xml {tabTitle:Maven}
2224
<dependency>
2325
<groupId>io.sentry</groupId>
@@ -61,7 +63,7 @@ val apollo = ApolloClient.builder()
6163

6264
## Manual Configuration
6365

64-
When using a custom `NetworkTransport`, the `SentryInterceptors` need to be added manually, because `HttpInterceptors` need to be added to the `NetworkTransport`:
66+
Because `HttpInterceptors` need to be added to the `NetworkTransport`, the `SentryInterceptors` have to be added manually if you're using a custom `NetworkTransport`:
6567

6668
```java
6769
import com.apollographql.apollo3.ApolloClient;
@@ -122,7 +124,7 @@ In Global Hub Mode, all threads use the same Hub.
122124

123125
## Using With Kotlin Coroutines
124126

125-
To make sure that a coroutine has access to the correct Sentry context, provide an instance of `SentryContext` when launching a coroutine:
127+
Make sure that your coroutine has access to the correct Sentry context when launching, by providing an instance of `SentryContext`:
126128

127129
```kotlin
128130
import com.apollographql.apollo3.ApolloClient

0 commit comments

Comments
 (0)