Tips // Claude in practice

Tips for working better with Claude

One short tip at a time, with an example you can copy. Move through them at random or search for what you need.

OtherAdvancedClaude Code

OTel tells you what ran; the Compliance API, what was said

Three sources, three questions: audit logs (admin events), the Compliance API (conversations) and OpenTelemetry (tools executed).

With CLAUDE_CODE_ENABLE_TELEMETRY=1, Claude Code emits metrics and events for every tool call, Bash command and MCP invocation to any OTLP backend. Prompt content and command detail are separate opt-ins (OTEL_LOG_USER_PROMPTS=1 and OTEL_LOG_TOOL_DETAILS=1). So developers cannot override it, push the env block through managed settings. To test, lower the export interval to 10 seconds and revert it before production.

Example
# Local debugging: nothing leaves the machine
CLAUDE_CODE_ENABLE_TELEMETRY=1
OTEL_METRICS_EXPORTER=console
OTEL_LOGS_EXPORTER=console
OTEL_METRIC_EXPORT_INTERVAL=10000
#opentelemetry#observability#audit#siem