proxy: preserve wall-clock duration in metrics#629
Conversation
Keep request duration from being underreported when upstream timings only cover a subset of the full request lifecycle. - compare wall-clock and upstream timing durations - keep token and throughput values from timings - add regression coverage for underreported timings fixes mostlygeek#602
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThe PR modifies duration calculation in the metrics parser to compute wall-clock duration once and compare it against timing-derived duration, selecting the greater value instead of unconditionally using timing data when available. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
|
Nice thanks for this fix! |
|
@mostlygeek can you please make a release so us users can enjoy this and the other improvement made since the last release? Thank you! |
Keep request duration from being underreported when upstream timings only cover part of the full request lifecycle.
fixes #602