Update usage-reporting.mdx (#6636)

This commit is contained in:
Yannick Rödl 2025-03-21 07:33:07 +01:00 committed by GitHub
parent 9b2bec6185
commit 3ee199ccc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,15 +76,17 @@ import { defineConfig } from '@graphql-hive/gateway'
export const gatewayConfig = defineConfig({
reporting: {
type: 'hive',
// The registry token provided by Hive Registry
// The registry token provided by Hive Registry, defaulting to process.env.HIVE_USAGE_ACCESS_TOKEN
token: '<token>'
// The registry target which the usage data should be reported to
// The registry target which the usage data should be reported to defaulting to process.env.HIVE_USAGE_TARGET
// This can either be a slug following the format `$organizationSlug/$projectSlug/$targetSlug` (e.g `the-guild/graphql-hive/staging`)
// or an UUID (e.g. `a0f4c605-6541-4350-8cfe-b31f21a4bf80`).
target: '<target>'
/**
* Other options
*
* selfHosting: { ... },
* clientInfo: { ... },
* clientInfo(context) { ... },
*
* See more in Hive Client reference
*/