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
Project-level config takes precedence over global config.
162
+
163
+
**Global config (recommended for personal use)**
164
+
165
+
Create `~/.claude/dash0-agent-plugin.local.md` to configure the plugin once for all projects:
166
+
167
+
```markdown
168
+
---
169
+
otlp_url: "https://ingress.us1.dash0.com"
170
+
auth_token: "your-dash0-auth-token"
171
+
dataset: "default"
172
+
agent_name: "claude-code"
173
+
omit_io: true
174
+
omit_user_info: true
175
+
---
176
+
```
177
+
178
+
**Project-level config**
179
+
180
+
Create `.claude/dash0-agent-plugin.local.md` in a project directory for project-specific overrides (e.g. a different dataset per repo):
157
181
158
182
```markdown
159
183
---
160
184
enabled: true
161
185
otlp_url: "https://ingress.us1.dash0.com"
162
186
auth_token: "your-dash0-auth-token"
163
-
dataset: "your-dataset"
187
+
dataset: "my-project-dataset"
164
188
agent_name: "my-coding-agent"
189
+
omit_io: false
190
+
omit_user_info: false
165
191
---
166
192
```
167
193
168
-
The local file sets `DASH0_*` env vars for the hook subprocess, so it acts as the lowest-priority fallback. Set `enabled: false` to disable the plugin for a single project without uninstalling it.
194
+
**Config file options**
195
+
196
+
| Option | Description | Default |
197
+
|---|---|---|
198
+
|`enabled`| Enable/disable the plugin for this project |`true`|
199
+
|`otlp_url`| Dash0 OTLP endpoint URL | — |
200
+
|`auth_token`| Dash0 authentication token | — |
201
+
|`dataset`| Dash0 dataset name | — |
202
+
|`agent_name`| Agent name (used as `service.name`) |`claude-code`|
203
+
|`omit_io`| Omit prompt content and tool I/O |`true`|
204
+
|`omit_user_info`| Anonymize user identity |`true`|
205
+
206
+
Set `enabled: false` to disable the plugin for a single project without uninstalling it.
207
+
208
+
The config file sets environment variables for the hook subprocess, so it acts as a fallback after `/plugin → Configure` values and before `DASH0_*` environment variables.
169
209
170
210
### Debug mode
171
211
@@ -195,12 +235,10 @@ Output is prefixed with `[dash0:trace]` or `[dash0:log]` for filtering:
195
235
196
236
**No spans in Dash0 after install.** The plugin was likely installed but not configured, or configured but not reloaded. Check:
197
237
198
-
1. Look for this line in Claude Code's stderr on `SessionStart`:
199
-
```
200
-
dash0: not configured — no OTLP_URL set. In Claude Code: /plugin → Installed → dash0 → Configure, then /reload-plugins.
201
-
```
202
-
If you see it, follow [First-time setup](#first-time-setup).
203
-
2. If you've already configured but spans still don't appear, run `/reload-plugins`. Saved values are not picked up by an already-running session until reload.
238
+
1. Look for a `dash0:` message in the Claude Code UI on session start:
239
+
-`dash0: telemetry is not active` — OTLP URL is not configured. Set it via `/plugin → Configure` or in the config file.
240
+
-`dash0: connectivity check failed` — URL is set but connection failed (e.g., invalid auth token returns 401).
241
+
2. If you've configured via `/plugin → Configure` but spans still don't appear, run `/reload-plugins`. Saved values are not picked up by an already-running session until reload.
204
242
205
243
**More verbose debugging.** Run Claude Code with `--debug` to see plugin error messages:
0 commit comments