Claude Code configuration

15-01-2026

Settings:

  • C:\Users\lmiloszewski\.claude

Telemetry:

export CLAUDE_CODE_ENABLE_TELEMETRY=1
export OTEL_LOGS_EXPORTER=otlp
export OTEL_METRICS_EXPORTER=otlp
export OTEL_TRACES_EXPORTER=otlp
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
export OTEL_EXPORTER_OTLP_ENDPOINT=https://logfire-eu.pydantic.dev
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer LOGFIRE_WRITE_TOKEN"

Notifications:

Hooks:

Tracing:

  • intercepting network traffic using mitmproxy
docker pull mitmproxy/mitmproxy:dev
 
# this makes :8081 accessible to the local machine only
docker run --rm -it -p 8080:8080 -p 127.0.0.1:8081:8081 mitmproxy/mitmproxy mitmweb --web-host 0.0.0.0
 
Web server listening at http://0.0.0.0:8081/
No web browser found. Please open a browser and point it to http://0.0.0.0:8081/
Proxy server listening at http://*:8080
[...]
uv add "claude_telemetry[logfire]"
from claude_telemetry import run_agent_with_telemetry
 
await run_agent_with_telemetry(
    prompt="Analyze my project and suggest improvements",
)
npx @mariozechner/claude-trace --include-all-requests