This commit adds a Prometheus histogram metric to measure the processing duration of the PublishBlockV2 beacon API endpoint in milliseconds. The metric covers the complete request processing time including: - Request validation and parsing - Block decoding (SSZ/JSON) - Broadcast validation checks - Block proposal through ProposeBeaconBlock - All synchronous operations and awaited goroutines Background operations that run in goroutines (block broadcasting, blob sidecar processing) are included in the timing since the main function waits for their completion before returning. Files changed: - beacon-chain/rpc/eth/beacon/metrics.go: New metric definition - beacon-chain/rpc/eth/beacon/handlers.go: Timing instrumentation - beacon-chain/rpc/eth/beacon/BUILD.bazel: Added metrics.go and Prometheus deps - changelog/potuz_add_publishv2_metric.md: Changelog entry 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
Prysm: An Ethereum Consensus Implementation Written in Go
📖 Overview
This is the core repository for Prysm, a Golang implementation of the Ethereum Consensus specification, developed by Offchain Labs.
See the Changelog for details of the latest releases and upcoming breaking changes.
🚀 Getting Started
A detailed set of installation and usage instructions as well as breakdowns of each individual component are available in the official documentation portal.
💬 Need help? Join our Discord Community for support.
🏆 Staking on Mainnet
To participate in staking, you can join the official Ethereum launchpad. The launchpad is the only recommended way to become a validator on mainnet.
🔍 Explore validator rewards/penalties:
🤝 Contributing
🔥 Branches
Prysm maintains two permanent branches:
master- This points to the latest stable release. It is ideal for most users.develop- This is used for development and contains the latest PRs. Developers should base their PRs on this branch.
🛠 Contribution Guide
Want to get involved? Check out our Contribution Guide to learn more!
📜 License
This project is licensed under the GNU General Public License v3.0.
