Skip to content

feat(l2): always use monitor #3759

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

Merged
merged 4 commits into from
Jul 31, 2025
Merged

feat(l2): always use monitor #3759

merged 4 commits into from
Jul 31, 2025

Conversation

gianbelinche
Copy link
Contributor

@gianbelinche gianbelinche commented Jul 21, 2025

Motivation
Once all monitor issues are resolved, it should be used by default

Description
Change the --monitor flag for the --no-monitor one, which turns off the monitor

It should only be merged after all other issues are resolved
#3513, #3526, #3534, #3516, #3520, #3521, #3522, #3523, #3524, #3525, #3527, #3528, #3529, #3530, #3531, #3532, #3695, #3757, #3736

@Copilot Copilot AI review requested due to automatic review settings July 21, 2025 20:08
@gianbelinche gianbelinche requested a review from a team as a code owner July 21, 2025 20:08
@github-actions github-actions bot added the L2 Rollup client label Jul 21, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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 removes the --monitor flag from the L2 sequencer configuration and enables the monitor functionality by default. The change simplifies the codebase by eliminating conditional monitoring behavior once all monitor-related issues have been resolved.

  • Removes the --monitor CLI flag and related configuration options
  • Updates the monitoring initialization to run unconditionally
  • Simplifies tracing initialization by removing monitor-specific conditional logic

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
crates/l2/sequencer/mod.rs Removes conditional check for monitor enabling, making EthrexMonitor always spawn
crates/l2/sequencer/configs.rs Removes the enabled field from MonitorConfig struct
cmd/ethrex/l2/options.rs Removes the --monitor CLI flag and its configuration mapping
cmd/ethrex/l2/initializers.rs Simplifies tracing initialization by removing monitor-conditional logic
cmd/ethrex/l2/command.rs Updates function call to match simplified tracing initialization

@@ -18,7 +18,7 @@ use tracing_subscriber::layer::SubscriberExt;
use tui_logger::{LevelFilter, TuiTracingSubscriberLayer};

use crate::cli::Options as L1Options;
use crate::initializers::{self, get_authrpc_socket_addr, get_http_socket_addr};
use crate::initializers::{get_authrpc_socket_addr, get_http_socket_addr};
Copy link
Preview

Copilot AI Jul 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of the initializers import alias may indicate that some functionality from that module is no longer being used. Consider verifying that all necessary imports are still present after removing the monitor-conditional logic.

Copilot uses AI. Check for mistakes.

Copy link

github-actions bot commented Jul 21, 2025

Lines of code report

Total lines added: 0
Total lines removed: 17
Total lines changed: 17

Detailed view
+---------------------------------------+-------+------+
| File                                  | Lines | Diff |
+---------------------------------------+-------+------+
| ethrex/cmd/ethrex/l2/initializers.rs  | 118   | -5   |
+---------------------------------------+-------+------+
| ethrex/cmd/ethrex/l2/options.rs       | 643   | -9   |
+---------------------------------------+-------+------+
| ethrex/crates/l2/sequencer/configs.rs | 88    | -1   |
+---------------------------------------+-------+------+
| ethrex/crates/l2/sequencer/mod.rs     | 173   | -2   |
+---------------------------------------+-------+------+

@ilitteri ilitteri moved this to In Review in ethrex_l2 Jul 29, 2025
@github-project-automation github-project-automation bot moved this from In Review to Requires Changes in ethrex_l2 Jul 29, 2025
@ilitteri ilitteri enabled auto-merge July 31, 2025 14:05
@ilitteri ilitteri added this pull request to the merge queue Jul 31, 2025
Merged via the queue into main with commit df57b3f Jul 31, 2025
38 checks passed
@ilitteri ilitteri deleted the always-use-monitor branch July 31, 2025 14:34
@github-project-automation github-project-automation bot moved this from Requires Changes to Done in ethrex_l2 Jul 31, 2025
Oppen pushed a commit that referenced this pull request Aug 1, 2025
**Motivation**
Once all monitor issues are resolved, it should be used by default
<!-- Why does this pull request exist? What are its goals? -->

**Description**
Change the `--monitor` flag for the `--no-monitor` one, which turns off
the monitor
<!-- A clear and concise general description of the changes this PR
introduces -->

<!-- Link to issues: Resolves #111, Resolves #222 -->

It should only be merged after all other issues are resolved
#3513,
#3526,
#3534,
#3516,
#3520,
#3521,
#3522,
#3523,
#3524,
#3525,
#3527,
#3528,
#3529,
#3530,
#3531,
#3532,
#3695,
#3757,
#3736
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L2 Rollup client
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants