mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 00:58:36 +00:00
Update GraphOS integration docs (#6512)
This commit is contained in:
parent
1a21df19be
commit
5c3bbd39b8
1 changed files with 19 additions and 1 deletions
|
|
@ -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')
|
||||
}
|
||||
})
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue