fix(gateway): map OTLP mode to valid protocol for Caddy#482
Conversation
|
Warning Review limit reached
More reviews will be available in 24 minutes and 31 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
NumaryBot
left a comment
There was a problem hiding this comment.
🛑 Changes requested — automated review
The code change leaves an existing e2e test assertion expecting the previous protocol value, so the repository's test suite can fail even though the runtime mapping may be intended.
59959e8 to
025aef2
Compare
NumaryBot
left a comment
There was a problem hiding this comment.
🛑 Changes requested — automated review
The new protocol mapping fixes the basic HTTP mode case, but pathful HTTP OTLP DSNs that already include the traces endpoint are malformed by the added suffix logic.
025aef2 to
bb1a3a3
Compare
NumaryBot
left a comment
There was a problem hiding this comment.
🛑 Changes requested — automated review
The protocol mapping is mostly correct, but the new endpoint rewriting breaks supported OTLP DSNs that already specify a custom/full trace path.
bb1a3a3 to
0bbc1cc
Compare
NumaryBot
left a comment
There was a problem hiding this comment.
🛑 Changes requested — automated review
The protocol mapping is mostly correct, but base HTTP endpoints with a trailing slash are routed to the wrong path and will fail to export traces through Caddy.
0bbc1cc to
cbf6dc8
Compare
NumaryBot
left a comment
There was a problem hiding this comment.
🛑 Changes requested — automated review
The new protocol mapping generally addresses the intended Caddy value, but it mishandles full HTTP endpoints that include a trailing slash by generating a double-slash OTLP traces path.
cbf6dc8 to
79419c3
Compare
NumaryBot
left a comment
There was a problem hiding this comment.
🛑 Changes requested — automated review
The new e2e step expects the gateway deployment to update after only an OtelExporterEndpoint is applied, but no gateway reconcile is triggered by that resource, so the test will time out.
79419c3 to
eeb511b
Compare
NumaryBot
left a comment
There was a problem hiding this comment.
✅ Approve — automated review
No discrete correctness issues were identified in the changed code. The OTLP mode mapping and endpoint path handling appear consistent with the intended Caddy/OpenTelemetry protocol values.
No findings.
eeb511b to
2c9d454
Compare
NumaryBot
left a comment
There was a problem hiding this comment.
✅ Approve — automated review
The OTLP protocol mapping and endpoint path handling appear consistent with the existing environment variable generation and the added test coverage. I did not find any discrete regressions introduced by this patch.
No findings.
No description provided.