Skip to content

Commit

Permalink
Merge pull request #358 from DataDog/mconstantin/rumm-554/graphql-int…
Browse files Browse the repository at this point in the history
…egration-docs

RUMM-554 Update Docs for integration with Apollo
  • Loading branch information
xgouchet authored Sep 3, 2020
2 parents 583e66e + 22ff82d commit 21f3c27
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ If you use Retrofit, let it use your `OkHttpClient`, and you'll get RUM and APM
.build()
```

### Apollo (GraphQL)

If you use Apollo, let it use your `OkHttpClient`, and you'll get RUM and APM information about all the queries performed through Apollo client.

```kotlin
val apolloClient = ApolloClient.builder()
.okHttpClient(okHttpClient)
.serverUrl(<APOLLO_SERVER_URL>)
.build()
```

## Looking up your logs

When you open your console in Datadog, navigate to the Logs section. In the search bar, type `source:android`. This filters your logs to only show the ones coming from mobile applications (Android and iOS).
Expand Down
11 changes: 11 additions & 0 deletions docs/rum_collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,17 @@ If you use Retrofit, let it use your `OkHttpClient`, and you'll get RUM and APM
.build()
```

### Apollo (GraphQL)

If you use Apollo, let it use your `OkHttpClient`, and you'll get RUM and APM information about all the queries performed through Apollo client.

```kotlin
val apolloClient = ApolloClient.builder()
.okHttpClient(okHttpClient)
.serverUrl(<APOLLO_SERVER_URL>)
.build()
```

## Further Reading

{{< partial name="whats-next/whats-next.html" >}}
Expand Down

0 comments on commit 21f3c27

Please sign in to comment.