This repo contains two helper scripts for quickly wiring up OpenTelemetry exports from your local dev machine to SigNoz Cloud while you work with Claude Code / VS Code.
claude_code_otel_terminal.sh— sets environment variables for the current terminal session, so that any Claude code activity will be exported to SigNoz.claude_code_otel_vscode.sh— launches VS Code (code) with the same environment so any Claude Code activity in the VSCode session will be exported to SigNoz.
- SigNoz Cloud account and an Ingestion Key.
- Your region’s OTLP endpoint (hostname only; port is
443): - VS Code CLI (
code) available in your PATH (see below).
- macOS: In VS Code, open Command Palette →
Shell Command: Install 'code' command in PATH. - Windows: During install, select “Add to PATH”. Or run VS Code installer again and enable that option.
- Linux: If you installed via a package manager,
codeis usually in PATH already (which codeto confirm).
Open each script and replace the placeholders:
- Set the
<region>to match your SigNoz Cloud region - Replace
<your-signoz-ingestion-key>with your SigNoz ingestion key
Before running them, give both scripts execution permissions:
chmod +x ./claude_code_otel_terminal.sh
chmod +x ./claude_code_otel_vscode.shNow you can either script and track your Claude Code activity!