Skip to content

Commit 5c3bbd3

Browse files
authored
Update GraphOS integration docs (#6512)
1 parent 1a21df1 commit 5c3bbd3

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

packages/web/docs/src/content/gateway/usage-reporting.mdx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,25 @@ export const gatewayConfig = defineConfig({
129129
*
130130
* Defaults to GraphOS endpoint (https://usage-reporting.api.apollographql.com/api/ingress/traces)
131131
*/
132-
endpoint?: string;
132+
endpoint: 'https://usage-reporting.api.apollographql.com/api/ingress/traces',
133+
/**
134+
* Agent Version to report to the usage reporting API
135+
*
136+
* Defaults to the Hive Gateway's version
137+
*/
138+
agentVersion: '[email protected]',
139+
/**
140+
* Client name to report to the usage reporting API
141+
*
142+
* Defaults to incoming `apollo-graphql-client-name` HTTP header
143+
*/
144+
clientName: req => req.headers.get('apollo-graphql-client-name'),
145+
/**
146+
* Client version to report to the usage reporting API
147+
*
148+
* Defaults to incoming `apollo-graphql-client-version` HTTP header
149+
*/
150+
clientVersion: req => req.headers.get('apollo-graphql-client-version')
133151
}
134152
})
135153
```

0 commit comments

Comments
 (0)