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
{{ message }}
Repository navigation
Commit 15bfec8
Browse filesBrowse the repository at this point in the historyBrowse files
|`tool_result`| Tool completed or errored (duration, success, output size) |
@@ -99,6 +99,7 @@ The environment variables (set them in your shell profile — `~/.zshrc`, `~/.ba
99
99
|`OPENCODE_METRIC_PREFIX`|`opencode.`| Prefix for all metric names (e.g. set to `claude_code.` for Claude Code dashboard compatibility) |
100
100
|`OPENCODE_DISABLE_METRICS`|*(unset)*| Comma-separated list of metric name suffixes to disable (e.g. `cache.count,session.duration`) |
101
101
|`OPENCODE_DISABLE_LOGS`|*(unset)*| Set to any non-empty value to suppress all OTLP log events while leaving metrics and traces unchanged |
102
+
|`OPENCODE_CAPTURE_PROMPT`|*(unset)*| Set to any non-empty value to include the full prompt text in the `prompt` field of `user_prompt` log events. **Off by default — prompts may contain secrets or PII; enable only for trusted collectors.**|
102
103
|`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 |
103
104
|`OPENCODE_OTLP_HEADERS`|*(unset)*| Comma-separated `key=value` headers added to all OTLP exports. **Keep out of version control — may contain sensitive auth tokens.**|
104
105
|`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`. |
"prompt-in-logs capture enabled - full prompt text emitted in the `prompt` attribute of user_prompt log events (spans always carry the prompt regardless)",
0 commit comments