You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -71,8 +72,20 @@ All configuration is via environment variables. Set them in your shell profile (
71
72
|`OPENCODE_OTLP_METRICS_INTERVAL`|`60000`| Metrics export interval in milliseconds |
72
73
|`OPENCODE_OTLP_LOGS_INTERVAL`|`5000`| Logs export interval in milliseconds |
73
74
|`OPENCODE_METRIC_PREFIX`|`opencode.`| Prefix for all metric names (e.g. set to `claude_code.` for Claude Code dashboard compatibility) |
74
-
|`OPENCODE_OTLP_HEADERS`|_(unset)_| Comma-separated `key=value` headers added to all OTLP exports (e.g. for auth tokens) |
75
-
|`OPENCODE_RESOURCE_ATTRIBUTES`|_(unset)_| Comma-separated `key=value` pairs merged into the OTel resource |
75
+
|`OPENCODE_OTLP_HEADERS`|_(unset)_| Comma-separated `key=value` headers added to all OTLP exports. Example: `api-key=abc123,x-tenant=my-org`. **Keep out of version control — may contain sensitive auth tokens.**|
76
+
|`OPENCODE_RESOURCE_ATTRIBUTES`|_(unset)_| Comma-separated `key=value` pairs merged into the OTel resource. Example: `service.version=1.2.3,deployment.environment=production`|
77
+
78
+
### Headers and resource attributes
79
+
80
+
```bash
81
+
# Auth token for a managed collector (e.g. Honeycomb, Grafana Cloud)
> **Security note:**`OPENCODE_OTLP_HEADERS` typically contains auth tokens. Set it in your shell profile (`~/.zshrc`, `~/.bashrc`) or a secrets manager — never commit it to version control or print it in CI logs.
0 commit comments