From 5c3bbd39b87622c288c0ed652ce3e9eedb7e9a00 Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Thu, 13 Feb 2025 18:27:03 +0300 Subject: [PATCH] Update GraphOS integration docs (#6512) --- .../src/content/gateway/usage-reporting.mdx | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/packages/web/docs/src/content/gateway/usage-reporting.mdx b/packages/web/docs/src/content/gateway/usage-reporting.mdx index cfe689580..33b053cbc 100644 --- a/packages/web/docs/src/content/gateway/usage-reporting.mdx +++ b/packages/web/docs/src/content/gateway/usage-reporting.mdx @@ -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') } }) ```