# EPF Cohort 6 – Week 9 Update ## Progress This Week I continued working on **Phase 2** from the [roadmap](https://hackmd.io/JX5Q0ObtQ-iStLwSmVRPVg#Phase-1-Foundational-Setup). - Opened a [Phase 2 PR – Tracing the Network Boundary](https://github.com/sntntn/grandine/pull/9) in the main repository. - Opened a related [PR in the `eth2_libp2p` submodule](https://github.com/sntntn/eth2_libp2p/pull/3) --- #### Key features implemented this week: - Coordinated the migration of tracing in the **`eth2_libp2p`** **submodule** with the **main** repository’s tracing updates. - Removed `slog` usage from **`eth2_libp2p`** and **`p2p`** crates. - Added tracing spans for **`eth2_libp2p`** instrumentation. - Integrated tracing features like **spans** and **structured fields** in the network layer. - Implemented the **`crit!()`** tracing macro to log critical errors. - Instrumented public endpoints such as `block publishing`, `validator block requests`, and `attestation submissions` in the **`http_api`** crate. --- #### What I found interesting this week - Learning how to coordinate changes in a submodule with the implementation in the parent repository. --- Additionally we had a fellow sync meeting with the Grandine team where we discussed different level tracing strategies. One idea under consideration is to support writing different types of tracing logs into separate files, so that end users are not overloaded with information they don’t need. This is something I plan to explore and potentially include in a future roadmap phase. #### Current State Below is a screenshot of the current tracing logs when running Grandine, showing instrumented spans at the debug level in the `eth2_libp2p` module. ![Screenshot from 2025-08-17 23-04-18](https://hackmd.io/_uploads/B1oc1cxKxe.png) ## Next Steps - Finish Phase 2 - Dive deeper into network layer instrumentation with tracing to improve observability and structured diagnostics. ## Resources - [Grandine GitHub Repository](https://github.com/grandinetech/grandine) - [Lighthouse_network](https://github.com/sigp/lighthouse/tree/stable/beacon_node/lighthouse_network) extracted as [eth2_libp2p](https://github.com/grandinetech/eth2_libp2p). - [Roadmap HackMD](https://hackmd.io/JX5Q0ObtQ-iStLwSmVRPVg) - [**PR** Phase 2: Tracing the Network Boundary](https://github.com/sntntn/grandine/pull/9) - [**PR** Phase 2: Tracing the Network Boundary (eth2_libp2p submodule)](https://github.com/sntntn/eth2_libp2p/pull/3)