Skip to content

Instantly share code, notes, and snippets.

@dsfaccini
Created December 27, 2025 15:58
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='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=my-write-token" ~/.claude/local/claude'
# or use a file like: .env.claude
# export CLAUDE_CODE_ENABLE_TELEMETRY="1"
# export OTEL_METRICS_EXPORTER="otlp"
# export OTEL_LOGS_EXPORTER="otlp"
# export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
# export OTEL_EXPORTER_OTLP_ENDPOINT="https://logfire-us.pydantic.dev"
# export OTEL_EXPORTER_OTLP_HEADERS="Authorization=my-write-token"
# and run:
source .env.claude && claude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment