-
Notifications
You must be signed in to change notification settings - Fork 1.9k
CCIP-8881 ccv metric views #20694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
CCIP-8881 ccv metric views #20694
Conversation
|
I see you updated files related to
|
d5f29b4 to
6a8939a
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR integrates CCV (Cross-Chain Verification) metric views into the beholder monitoring client by creating a new metric aggregation function and wiring it into the telemetry initialization flow.
Key Changes:
- Added a new
MetricViews()function in theccvcommonpackage to aggregate executor and verifier metric views - Updated the shell initialization to consolidate metric views from both workflows and CCV components
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
core/services/ccv/ccvcommon/monitoring.go |
New file that aggregates metric views from CCV executor and verifier components |
core/cmd/shell.go |
Updated telemetry initialization to use a new MetricViews() function that includes both workflow and CCV metrics |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| views := make([]sdkmetric.View, 0) | ||
| views = append(views, workflowsmonitoring.MetricViews()...) | ||
| views = append(views, ccvcommon.MetricViews()...) |
Copilot
AI
Jan 5, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preallocating the slice capacity would avoid potential reallocation during append operations. Consider estimating the total number of views from both monitoring packages.
| views := make([]sdkmetric.View, 0) | |
| views = append(views, workflowsmonitoring.MetricViews()...) | |
| views = append(views, ccvcommon.MetricViews()...) | |
| workflowViews := workflowsmonitoring.MetricViews() | |
| ccvViews := ccvcommon.MetricViews() | |
| views := make([]sdkmetric.View, 0, len(workflowViews)+len(ccvViews)) | |
| views = append(views, workflowViews...) | |
| views = append(views, ccvViews...) |
| views := make([]sdkmetric.View, 0) | ||
| views = append(views, executormonitoring.MetricViews()...) | ||
| views = append(views, verifiermonitoring.MetricViews()...) |
Copilot
AI
Jan 5, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preallocating the slice capacity would avoid potential reallocation during append operations. Consider estimating the total number of views from both executor and verifier monitoring packages.
| views := make([]sdkmetric.View, 0) | |
| views = append(views, executormonitoring.MetricViews()...) | |
| views = append(views, verifiermonitoring.MetricViews()...) | |
| executorViews := executormonitoring.MetricViews() | |
| verifierViews := verifiermonitoring.MetricViews() | |
| totalViews := len(executorViews) + len(verifierViews) | |
| views := make([]sdkmetric.View, 0, totalViews) | |
| views = append(views, executorViews...) | |
| views = append(views, verifierViews...) |




Adding CCV metric views to beholder client
https://smartcontract-it.atlassian.net/browse/CCIP-8881
Requires
smartcontractkit/chainlink-ccv#499
Supports