|
14 | 14 | |[**query\_planner**](#query_planner)|`object`|Query planning configuration.<br/>Default: `{"allow_expose":false,"timeout":"10s"}`<br/>|| |
15 | 15 | |[**supergraph**](#supergraph)|`object`|Configuration for the Federation supergraph source. By default, the router will use a local file-based supergraph source (`./supergraph.graphql`).<br/>|| |
16 | 16 | |[**traffic\_shaping**](#traffic_shaping)|`object`|Configuration for the traffic-shaper executor. Use these configurations to control how requests are being executed to subgraphs.<br/>Default: `{"dedupe_enabled":true,"max_connections_per_host":100,"pool_idle_timeout_seconds":50}`<br/>|| |
| 17 | +|[**usage\_reporting**](#usage_reporting)|`object`, `null`|Configuration for usage reporting to GraphQL Hive.<br/>|yes| |
17 | 18 |
|
18 | 19 | **Additional Properties:** not allowed |
19 | 20 | **Example** |
@@ -83,6 +84,7 @@ traffic_shaping: |
83 | 84 | dedupe_enabled: true |
84 | 85 | max_connections_per_host: 100 |
85 | 86 | pool_idle_timeout_seconds: 50 |
| 87 | +usage_reporting: null |
86 | 88 |
|
87 | 89 | ``` |
88 | 90 |
|
@@ -1740,4 +1742,45 @@ pool_idle_timeout_seconds: 50 |
1740 | 1742 |
|
1741 | 1743 | ``` |
1742 | 1744 |
|
| 1745 | +<a name="usage_reporting"></a> |
| 1746 | +## usage\_reporting: object,null |
| 1747 | + |
| 1748 | +Configuration for usage reporting to GraphQL Hive. |
| 1749 | + |
| 1750 | + |
| 1751 | +**Properties** |
| 1752 | + |
| 1753 | +|Name|Type|Description|Required| |
| 1754 | +|----|----|-----------|--------| |
| 1755 | +|**accept\_invalid\_certs**|`boolean`|Accepts invalid SSL certificates<br/>Default: false<br/>Default: `false`<br/>|no| |
| 1756 | +|**buffer\_size**|`integer`|A maximum number of operations to hold in a buffer before sending to Hive Console<br/>Default: 1000<br/>Default: `1000`<br/>Format: `"uint"`<br/>Minimum: `0`<br/>|no| |
| 1757 | +|**client\_name\_header**|`string`|Default: `"graphql-client-name"`<br/>|no| |
| 1758 | +|**client\_version\_header**|`string`|Default: `"graphql-client-version"`<br/>|no| |
| 1759 | +|**connect\_timeout**|`integer`|A timeout for only the connect phase of a request to Hive Console<br/>Unit: seconds<br/>Default: 5 (s)<br/>Default: `5`<br/>Format: `"uint64"`<br/>Minimum: `0`<br/>|no| |
| 1760 | +|**endpoint**|`string`|For self-hosting, you can override `/usage` endpoint (defaults to `https://app.graphql-hive.com/usage`).<br/>Default: `"https://app.graphql-hive.com/usage"`<br/>|no| |
| 1761 | +|[**exclude**](#usage_reportingexclude)|`string[]`|A list of operations (by name) to be ignored by Hive.<br/>Default: <br/>|no| |
| 1762 | +|**flush\_interval**|`integer`|Frequency of flushing the buffer to the server<br/>Default: 5 seconds<br/>Default: `5`<br/>Format: `"uint64"`<br/>Minimum: `0`<br/>|no| |
| 1763 | +|**request\_timeout**|`integer`|A timeout for the entire request to Hive Console<br/>Unit: seconds<br/>Default: 15 (s)<br/>Default: `15`<br/>Format: `"uint64"`<br/>Minimum: `0`<br/>|no| |
| 1764 | +|**sample\_rate**|`number`|Sample rate to determine sampling.<br/>0.0 = 0% chance of being sent<br/>1.0 = 100% chance of being sent<br/>Default: 1.0<br/>Default: `1`<br/>Format: `"double"`<br/>|no| |
| 1765 | +|**target\_id**|`string`|A target ID, 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”). To be used when the token is configured with an organization access token.<br/>|yes| |
| 1766 | +|**token**|`string`|Your [Registry Access Token](https://the-guild.dev/graphql/hive/docs/management/targets#registry-access-tokens) with write permission.<br/>|yes| |
| 1767 | + |
| 1768 | +**Additional Properties:** not allowed |
| 1769 | +**Example** |
| 1770 | + |
| 1771 | +```yaml |
| 1772 | +{} |
| 1773 | +
|
| 1774 | +``` |
| 1775 | + |
| 1776 | +<a name="usage_reportingexclude"></a> |
| 1777 | +### usage\_reporting\.exclude\[\]: array |
| 1778 | + |
| 1779 | +A list of operations (by name) to be ignored by Hive. |
| 1780 | +Example: ["IntrospectionQuery", "MeQuery"] |
| 1781 | + |
| 1782 | + |
| 1783 | +**Items** |
| 1784 | + |
| 1785 | +**Item Type:** `string` |
1743 | 1786 |
|
0 commit comments