Skip to content

Commit ee19609

Browse files
EmrysMyrddinenisdenjo
authored andcommitted
add configuration context documentation
1 parent abe0a2b commit ee19609

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/web/docs/src/content/gateway/other-features/custom-plugins.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@ export const gatewayConfig = defineConfig({
6262
})
6363
```
6464

65+
<details>
66+
<summary>Configuration Context</summary>
67+
68+
| Field Name | Type | Description |
69+
| --------------- | ------------------------------------ | --------------------------------------------------------------------------- |
70+
| `fetch` | `MeshFetch` | WHATWG compatible Fetch implementation. |
71+
| `log` | `Logger` | The logger to use throughout Hive and its plugins. |
72+
| `cwd` | `string` | Current working directory. |
73+
| `pubsub` | `HivePubSub` (optional) | Event bus for pub/sub. |
74+
| `cache` | `KeyValueCache` (optional) | Cache Storage. |
75+
| `openTelemetry` | `OpenTelemetryPluginUtils & { ... }` | OpenTelemetry API to access OTEL Tracer and Hive Gateway internal contexts. |
76+
77+
</details>
78+
6579
## Custom Plugins
6680

6781
You can take advantage of the plugin system to create your own custom plugin. This allows you to

0 commit comments

Comments
 (0)