Update GraphOS integration docs (#6512)

This commit is contained in:
Arda TANRIKULU 2025-02-13 18:27:03 +03:00 committed by GitHub
parent 1a21df19be
commit 5c3bbd39b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -129,7 +129,25 @@ export const gatewayConfig = defineConfig({
*
* Defaults to GraphOS endpoint (https://usage-reporting.api.apollographql.com/api/ingress/traces)
*/
endpoint?: string;
endpoint: 'https://usage-reporting.api.apollographql.com/api/ingress/traces',
/**
* Agent Version to report to the usage reporting API
*
* Defaults to the Hive Gateway's version
*/
agentVersion: 'hive-gateway@1.0.0',
/**
* Client name to report to the usage reporting API
*
* Defaults to incoming `apollo-graphql-client-name` HTTP header
*/
clientName: req => req.headers.get('apollo-graphql-client-name'),
/**
* Client version to report to the usage reporting API
*
* Defaults to incoming `apollo-graphql-client-version` HTTP header
*/
clientVersion: req => req.headers.get('apollo-graphql-client-version')
}
})
```