Created
December 27, 2025 15:58
-
-
Save dsfaccini/635c442def4ced4bf3d5956ce262120f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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