Wave-36 scope: C05 L43 production OTLP metrics push - #297
Conversation
|
Warning Review limit reached
Next review available in: 16 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?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 reviews. How do review 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 refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (10)
✨ 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 |
There was a problem hiding this comment.
Code Review
This pull request introduces the WAVE36_LANE.md file, which outlines the planning, acceptance criteria, and verification steps for the Wave-36 lane regarding production OTLP metrics push. The feedback points out that the document contains hardcoded absolute paths specific to a single developer's machine for both the worktree and the Cargo target directory, which should be replaced with relative or generic placeholder paths to ensure portability.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| # Wave-36 lane: w36-otlp-hard — C05 L43 production OTLP metrics push | ||
|
|
||
| **Branch:** `feat/sl-w36-otlp-hard` | ||
| **Worktree:** `C:\Users\koosh\SessionLedger-wtrees\w36-otlp-hard` |
There was a problem hiding this comment.
The Worktree path is hardcoded to an absolute path on a specific user's machine. This is not portable for other developers. Please use a placeholder or a relative path to make it generic.
| **Worktree:** `C:\Users\koosh\SessionLedger-wtrees\w36-otlp-hard` | |
| **Worktree:** `path/to/your/w36-otlp-hard/worktree` |
| ## Verify | ||
|
|
||
| ```powershell | ||
| $env:CARGO_TARGET_DIR = "C:\Users\koosh\SessionLedger-wtrees\w36-otlp-hard\target-w36-otlp-hard" |
There was a problem hiding this comment.
The CARGO_TARGET_DIR is set to a hardcoded absolute path. This makes the verification steps not runnable for other developers. Please use a relative path to make this portable.
| $env:CARGO_TARGET_DIR = "C:\Users\koosh\SessionLedger-wtrees\w36-otlp-hard\target-w36-otlp-hard" | |
| $env:CARGO_TARGET_DIR = "target-w36-otlp-hard" |
There was a problem hiding this comment.
Stale comment
Risk: medium. Production OTLP metrics changes across sl-daemon, CI, and adapters exceed the low-risk approval threshold; build · test · lint also failed (rustfmt on otel_metrics.rs). Leaving for human review; no reviewers assigned (no eligible assignees besides the author).
Sent by Cursor Approval Agent: Pull Request Approver
| metrics_export = "otlp-grpc", | ||
| endpoint = %endpoint, | ||
| prometheus_http = "/metrics", | ||
| "OTLP metrics export initialized; Prometheus /metrics unchanged" |
There was a problem hiding this comment.
🔒 Agentic Security Review
Severity: MEDIUM
The OTLP collector endpoint is logged verbatim (endpoint = %endpoint) on successful initialization, and a similar unredacted endpoint is emitted on init failure. OTLP endpoints are frequently configured with embedded credentials (userinfo/query tokens), so this change can leak secrets into application logs.
Impact: Credential-bearing endpoint data may be exposed to anyone with log access, enabling downstream collector compromise or unauthorized telemetry ingestion.
Reviewed by Cursor Security Reviewer for commit 03b3e2e. Configure here.
Co-authored-by: Cursor <cursoragent@cursor.com>
Wire MetricExporter + SdkMeterProvider when SL_OTLP_METRICS_ENDPOINT or OTEL_EXPORTER_OTLP_ENDPOINT is set. Updates otlp-metrics SSOT, SelfCheck anchors, and blocking ops-load CI job. Prometheus /metrics unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
03b3e2e to
b8e79fb
Compare
| Ok(provider) => return Some(provider), | ||
| Err(error) => { | ||
| eprintln!( | ||
| "warning: failed to initialize OTLP metrics export for {endpoint:?}: {error}; \ |
There was a problem hiding this comment.
WARNING: Endpoint logged with {:?} in error path
The eprintln! on the init_exporter failure path logs the endpoint via {endpoint:?}, which mirrors the credential-exposure risk already flagged at line 92. If the endpoint contains embedded userinfo or query tokens, they will appear in stderr.
| "warning: failed to initialize OTLP metrics export for {endpoint:?}: {error}; \ | |
| "warning: failed to initialize OTLP metrics export: {error}; \ |
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (3 files)
Fix these issues in Kilo Cloud Reviewed by step-3.7-flash · Input: 90.1K · Output: 14.6K · Cached: 348K |




Summary
Scoped lane only — see \WAVE36_LANE.md. Promotes OTLP metrics off Wave-33 soft stub (#276). Distinct from Wave-35 profile http_soft (#289). No SCORECARD edits.
Test plan