LCORE-1802: Add OpenTelemetry environment variables to docker-compose#2242
LCORE-1802: Add OpenTelemetry environment variables to docker-compose#2242anik120 wants to merge 1 commit into
Conversation
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>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📜 Recent review details⏰ Context from checks skipped due to timeout. (18)
🧰 Additional context used📓 Path-based instructions (1)**/*📄 CodeRabbit inference engine (Custom checks)
Files:
🧠 Learnings (1)📚 Learning: 2026-05-20T08:09:30.641ZApplied to files:
🔇 Additional comments (2)
WalkthroughChangesOpenTelemetry Compose Configuration
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 7✅ Passed checks (7 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
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:OTEL_EXPORTER_OTLP_ENDPOINT- OTLP collector endpoint URL (default: empty)OTEL_EXPORTER_OTLP_PROTOCOL- Export protocol, e.g.http/protobuforgrpc(default: empty)OTEL_SERVICE_NAME- Service identifier in traces (default: empty)OTEL_SDK_DISABLED- Enable/disable tracing (default:true- tracing OFF)Type of change
Tools used to create PR
Identify any AI code assistants used in this PR (for transparency and review context)
Related Tickets & Documents
Checklist before requesting a review
Testing
Summary by CodeRabbit