feat: Support exponential histograms in MCP - #2705
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 64f2841 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Greptile SummaryThis PR adds exponential histogram support to MCP metric workflows. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (3): Last reviewed commit: "Merge branch 'main' into drew/exp-hist-m..." | Re-trigger Greptile |
529c561 to
cbc2cab
Compare
🔵 Tier 2 — Low RiskSmall, isolated change with no API route or data model modifications. Why this tier:
Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns. Stats
|
E2E Test Results✅ All tests passed • 242 passed • 1 skipped • 1034s
Tests ran across 4 shards in parallel. |
Deep Review✅ No critical issues found. This PR extends existing 🟡 P2 — recommended
Reviewers (4): correctness, testing, maintainability, api-contract. Review basis / caveat: The sandbox blocked all shell, Testing gaps:
|
Summary
This PR adds support for Exponential Histogram metrics in the MCP Server's metrics-related tools.
Screenshots or video
How to test
Test locally, with
NEXT_PUBLIC_ENABLE_EXPONENTIAL_HISTOGRAMS=truein.env.local. Ask your MCP-connected agent to interact with exponential histogram metrics (you may also need to ask your agent to setup a service to send some exponential histogram metrics to ClickHouse.This feature toggle will be removed shortly in a followup PR, there isn't a reason to guard these changes with that toggle.
References