@tsuga/cli 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +11 -0
  2. package/dist/cli.js +108 -38
  3. package/package.json +2 -1
package/README.md CHANGED
@@ -301,6 +301,17 @@ tsuga experimental promql -d '{"query":"sum(rate(http_requests_total[5m]))","tim
301
301
 
302
302
  `timeRange.from` / `timeRange.to` are Unix timestamps in seconds.
303
303
 
304
+ ## LLM telemetry
305
+
306
+ Configure local Claude Code (`~/.claude/settings.json`) or Codex (`~/.codex/config.toml`) to ship OpenTelemetry data to your Tsuga cluster. Needs an OTLP base URL and an [ingestion API key](https://app.tsuga.com/settings/api-keys?ingestion=true) (not the same as your operation API key).
307
+
308
+ ```bash
309
+ tsuga setup claude-code --endpoint <otlp-base-url> --ingestion-api-key <key>
310
+ tsuga setup codex --endpoint <otlp-base-url> --ingestion-api-key <key>
311
+ ```
312
+
313
+ Both options also read from env (`TSUGA_OTLP_ENDPOINT`, `TSUGA_INGESTION_API_KEY`). Pass `--no-include-prompts` to strip user prompts + tool content from telemetry (default: include). The previous config is saved alongside the file as `.bak.<ISO>`; restart any running `claude` / `codex` sessions afterward.
314
+
304
315
  ## Documentation
305
316
 
306
317
  Browse and search the Tsuga documentation: