feat: add ability to log operation complexity - #3176
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Included review availability: 4 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. WalkthroughThe router exposes query complexity metrics through operation expressions, access logs, and tracing. It adds bucket classification, cache synchronization, response-cache handler wiring, integration tests, and documentation for complexity and Redis configuration. ChangesQuery Complexity Observability
Redis Configuration Documentation
Cache Wiring
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to No actionable merge-blocking risk remains based on the supplied evidence; the PR is merge-ready after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
Router-nonroot image scan passed✅ No security vulnerabilities found in image: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3176 +/- ##
==========================================
- Coverage 71.35% 62.86% -8.49%
==========================================
Files 336 265 -71
Lines 49535 31493 -18042
Branches 6116 0 -6116
==========================================
- Hits 35345 19798 -15547
+ Misses 14164 10160 -4004
- Partials 26 1535 +1509
🚀 New features to boost your workflow:
|
…ty-and-forced-timeout-on-query
…ty-and-forced-timeout-on-query
…ty-and-forced-timeout-on-query
…igation-verify-complexity-and-forced-timeout-on-query
…ty-and-forced-timeout-on-query
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
This PR allows complexity metrics to be logged in the access logs. It also add a missing wait on the complexity calculation cache.
Summary by CodeRabbit
New Features
Documentation
Tests
Checklist
Open Source AI Manifesto
This project follows the principles of the Open Source AI Manifesto. Please ensure your contribution aligns with its principles.