File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
packages/web/docs/src/content/gateway Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff 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```
You can’t perform that action at this time.
0 commit comments