Skip to content

in cc install and uninstall command. add more config #142

@AnnatarHe

Description

@AnnatarHe

the config should be like this:

# Claude Code OTEL Configuration
set -gx CLAUDE_CODE_ENABLE_TELEMETRY 1
set -gx OTEL_METRICS_EXPORTER otlp
set -gx OTEL_LOGS_EXPORTER otlp
set -gx OTEL_EXPORTER_OTLP_PROTOCOL grpc
set -gx OTEL_EXPORTER_OTLP_ENDPOINT "http://YOUR_SERVER_IP:4317"
set -gx OTEL_METRIC_EXPORT_INTERVAL 10000
set -gx OTEL_LOGS_EXPORT_INTERVAL 5000
set -gx OTEL_LOG_USER_PROMPTS 1
set -gx OTEL_METRICS_INCLUDE_SESSION_ID true
set -gx OTEL_METRICS_INCLUDE_VERSION true
set -gx OTEL_METRICS_INCLUDE_ACCOUNT_UUID true
set -gx OTEL_RESOURCE_ATTRIBUTES "user.name=leo,machine.name=macbook,team.id=shelltime"

with all features enabled. Please add the missing fields @claude

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions