Join us from October 8-10 in New York City to learn the latest tips, trends, and news about GraphQL Federation and API platform engineering.Join us for GraphQL Summit 2024 in NYC
Docs
Start for Free

Client Awareness

Configure client awareness in the router


The and support client awareness by default. If the client sets the headers apollographql-client-name and apollographql-client-version in its HTTP requests, can separate the metrics and per client.

Overriding client awareness headers

Different header names can be used by updating the configuration file. If those headers will be sent by a browser, they must be allowed in the CORS (Cross Origin Resource Sharing) configuration, as follows:

router.yaml
telemetry:
apollo:
# defaults to apollographql-client-name
client_name_header: MyClientHeaderName
# defaults to apollographql-client-version
client_version_header: MyClientHeaderVersion
cors:
# The headers to allow.
# (Defaults to [ Content-Type ], which is required for GraphOS Studio)
allow_headers: [ Content-Type, MyClientHeaderName, MyClientHeaderVersion]
Previous
GraphOS Reporting
Next
Configuration
Rate articleRateEdit on GitHubEditForumsDiscord

© 2024 Apollo Graph Inc., d/b/a Apollo GraphQL.

Privacy Policy

Company