Commit 3277b7b
committed
LCORE-1802: Add OpenTelemetry environment variables to docker-compose
Add OpenTelemetry OTLP exporter configuration environment variables to docker-compose files
with safe defaults that keep tracing disabled until explicitly enabled.
Variables added use `${VAR_NAME:-default}` pattern for flexible configuration:
1. **`OTEL_EXPORTER_OTLP_ENDPOINT`** - OTLP collector endpoint URL (default: empty)
2. **`OTEL_EXPORTER_OTLP_PROTOCOL`** - Export protocol, e.g. `http/protobuf` or `grpc` (default: empty)
3. **`OTEL_SERVICE_NAME`** - Service identifier in traces (default: empty)
4. **`OTEL_SDK_DISABLED`** - Enable/disable tracing (default: `true` - **tracing OFF**)
Signed-off-by: Anik Bhattacharjee <anbhatta@redhat.com>1 parent 688e89d commit 3277b7b
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
| |||
0 commit comments