Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions plugins/datadog-otel-setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ datadog-otel-setup:

The `api_key` field supports three formats:

| Format | Example | How It Works |
|--------|---------|--------------|
| Env var reference | `${DD_API_KEY}` | Expanded from shell environment |
| 1Password ref | `op://Engineering/dd-key/credential` | Resolved via `op read` |
| Literal | `abc123...` | Used as-is (only for gitignored configs) |
| Format | Example | How It Works |
| ----------------- | ------------------------------------ | ---------------------------------------- |
| Env var reference | `${DD_API_KEY}` | Expanded from shell environment |
| 1Password ref | `op://Engineering/dd-key/credential` | Resolved via `op read` |
| Literal | `abc123...` | Used as-is (only for gitignored configs) |

**Recommended**: Use `${DD_API_KEY}` and set the env var in your shell profile.

Expand All @@ -49,13 +49,13 @@ Set `enabled: false` in any config file to disable OTEL without uninstalling.

## Environment Variables Written

| Variable | Value |
|----------|-------|
| `CLAUDE_CODE_ENABLE_TELEMETRY` | `1` |
| `OTEL_METRICS_EXPORTER` | `otlp` (configurable) |
| `OTEL_LOGS_EXPORTER` | `otlp` (configurable) |
| `OTEL_EXPORTER_OTLP_ENDPOINT` | `https://otel.datadoghq.com:4317` (configurable) |
| `OTEL_EXPORTER_OTLP_HEADERS` | `DD-API-KEY=<resolved_key>` |
| Variable | Value |
| ------------------------------ | ------------------------------------------------ |
| `CLAUDE_CODE_ENABLE_TELEMETRY` | `1` |
| `OTEL_METRICS_EXPORTER` | `otlp` (configurable) |
| `OTEL_LOGS_EXPORTER` | `otlp` (configurable) |
| `OTEL_EXPORTER_OTLP_ENDPOINT` | `https://otel.datadoghq.com:4317` (configurable) |
| `OTEL_EXPORTER_OTLP_HEADERS` | `DD-API-KEY=<resolved_key>` |

## Dependencies

Expand Down
6 changes: 3 additions & 3 deletions plugins/datadog-otel-setup/datadog-otel-setup.settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

datadog-otel-setup:
enabled: true
endpoint: "https://otel.datadoghq.com:4317"
metrics_exporter: "otlp"
logs_exporter: "otlp"
endpoint: 'https://otel.datadoghq.com:4317'
metrics_exporter: 'otlp'
logs_exporter: 'otlp'
# API key — prefer env var or 1Password ref over literals
# api_key: "${DD_API_KEY}"
# api_key: "op://Engineering/datadog-api-key/credential"
Loading