diff --git a/README.md b/README.md index e09992de85..e94929baac 100644 --- a/README.md +++ b/README.md @@ -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() + .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). diff --git a/docs/rum_collection.md b/docs/rum_collection.md index 1f7848cf59..85cd29bdb4 100644 --- a/docs/rum_collection.md +++ b/docs/rum_collection.md @@ -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() + .build() +``` + ## Further Reading {{< partial name="whats-next/whats-next.html" >}}