Skip to content

Instantly share code, notes, and snippets.

@dsfaccini
Last active February 18, 2026 01:38
Show Gist options
  • Select an option

  • Save dsfaccini/635c442def4ced4bf3d5956ce262120f to your computer and use it in GitHub Desktop.

Select an option

Save dsfaccini/635c442def4ced4bf3d5956ce262120f to your computer and use it in GitHub Desktop.
# you can add this to your ~/.zshrc
alias claude-otel='CLAUDE_CODE_ENABLE_TELEMETRY=1 \
OTEL_METRICS_EXPORTER=otlp \
OTEL_LOGS_EXPORTER=otlp \
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf \
OTEL_EXPORTER_OTLP_ENDPOINT=https://logfire-us.pydantic.dev \
OTEL_EXPORTER_OTLP_HEADERS="Authorization=pylf_v1_us_yourtoken" \
OTEL_LOG_USER_PROMPTS=1 \
OTEL_LOG_TOOL_DETAILS=1 \
claude'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment