Join us for GraphQL Summit, October 10-12 in San Diego. Use promo code ODYSSEY for $400 off your pass.
Launch GraphOS Studio
You're viewing documentation for a previous version of this software. Switch to the latest stable version.

Client Awareness

Apollo Studio users can opt-in Client Awareness. Client Awareness allows you to view metrics split per client, helping you understand how each one interacts with your graph.

Client Awareness uses apollographql-client-name and apollographql-client-version custom HTTP headers to report client usage.

Enable it by adding an ApolloClientAwarenessInterceptor to your OkHttpClient:

val okHttpClient = OkHttpClient.Builder()
.addInterceptor(ApolloClientAwarenessInterceptor(BuildConfig.APPLICATION_ID, BuildConfig.VERSION_NAME))
instance = ApolloClient.builder()

Note: This example uses BuildConfig to set the applicationId as client name and app version as client version but you can override this. Especially, if your iOS and Android apps use the same package name, it's useful to customize it to allow differentiating the clients

Multi Modules (experimental)
Kotlin coroutines
Edit on GitHubEditForumsDiscord