HYPERFLEET-1224 - fix: remove WithPrettyPrint from OTel stdout exporter#172
HYPERFLEET-1224 - fix: remove WithPrettyPrint from OTel stdout exporter#172rh-amarin wants to merge 1 commit into
Conversation
Compact JSON output avoids multi-line span data interleaving with single-line structured log output in local/dev environments. Co-Authored-By: Claude <noreply@anthropic.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
📝 WalkthroughSummary by CodeRabbit
Walkthrough
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
Risk Score: 2 —
|
| Signal | Detail | Points |
|---|---|---|
| PR size | 4 lines | +0 |
| Sensitive paths | none | +0 |
| Test coverage | No _test.go files in diff | +2 |
Computed by hyperfleet-risk-scorer
Summary
stdouttrace.WithPrettyPrint()from the stdout OTel exporter fallback inInitTraceProvider()(pkg/telemetry/otel.go)OTEL_EXPORTER_OTLP_ENDPOINTis not set, the exporter was writing multi-line pretty-printed JSON spans to stdout, interleaving with single-line structured log outputhyperfleet-apiin HYPERFLEET-1223 / hyperfleet-api#215Test plan
make verifypassesmake testpasses (telemetry package tests pass includingTestStartSpan,TestSetTraceContext)Closes https://redhat.atlassian.net/browse/HYPERFLEET-1224
🤖 Generated with Claude Code