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
@@ -92,6 +95,8 @@ All configuration is via environment variables. Set them in your shell profile (
92
95
|`OPENCODE_OTLP_LOGS_INTERVAL`|`5000`| Logs export interval in milliseconds |
93
96
|`OPENCODE_METRIC_PREFIX`|`opencode.`| Prefix for all metric names (e.g. set to `claude_code.` for Claude Code dashboard compatibility) |
94
97
|`OPENCODE_DISABLE_METRICS`|*(unset)*| Comma-separated list of metric name suffixes to disable (e.g. `cache.count,session.duration`) |
98
+
|`OPENCODE_DISABLE_LOGS`|*(unset)*| Set to any non-empty value to suppress all OTLP log events while leaving metrics and traces unchanged |
99
+
|`OPENCODE_DISABLE_TRACES`|*(unset)*| Comma-separated list of trace types to disable (`session`, `llm`, `tool`). Use `all`, `*`, `true`, or `1` to disable every trace type |
95
100
|`OPENCODE_OTLP_HEADERS`|*(unset)*| Comma-separated `key=value` headers added to all OTLP exports. **Keep out of version control — may contain sensitive auth tokens.**|
96
101
|`OPENCODE_OTLP_HEADERS_HELPER`|*(unset)*| Executable script/binary that returns dynamic OTLP headers as JSON after an auth failure. Helper headers override `OPENCODE_OTLP_HEADERS`. |
97
102
|`OPENCODE_RESOURCE_ATTRIBUTES`|*(unset)*| Comma-separated `key=value` pairs merged into the OTel resource. Example: `service.version=1.2.3,deployment.environment=production`|
0 commit comments