Skip to content

Conversation

@MegaRedHand
Copy link
Collaborator

@MegaRedHand MegaRedHand commented Oct 20, 2025

Motivation

Some of the numbers we get from grafana seem to be weird. This might have been caused by a duplicate span that was created in apply_updates. I suspect it was from a git conflict that was solved erroneously.

Description

This PR removes a duplicate span entered() call.

@MegaRedHand MegaRedHand requested a review from a team as a code owner October 20, 2025 21:01
Copilot AI review requested due to automatic review settings October 20, 2025 21:01
Copy link
Contributor

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 a duplicate tracing span entry in the apply_updates function. The removed span.entered() call was redundant, causing the same tracing span to be entered twice unnecessarily.

  • Removed duplicate tracing::trace_span!("Block DB update").entered() call

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

],
)?;

let _span = tracing::trace_span!("Block DB update").entered();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note that before calling open_cfs there's another line like this.

@github-actions
Copy link

Lines of code report

Total lines added: 0
Total lines removed: 1
Total lines changed: 1

Detailed view
+-------------------------------------------+-------+------+
| File                                      | Lines | Diff |
+-------------------------------------------+-------+------+
| ethrex/crates/storage/store_db/rocksdb.rs | 1408  | -1   |
+-------------------------------------------+-------+------+

@github-project-automation github-project-automation bot moved this to In Review in ethrex_l1 Oct 20, 2025
@jrchatruc jrchatruc enabled auto-merge October 20, 2025 21:05
@MegaRedHand MegaRedHand added the metrics Grafana, Prometheus, etc label Oct 20, 2025
@jrchatruc jrchatruc added this pull request to the merge queue Oct 20, 2025
Merged via the queue into main with commit 438fe9d Oct 20, 2025
40 checks passed
@jrchatruc jrchatruc deleted the remove-duplicate-span branch October 20, 2025 21:39
@github-project-automation github-project-automation bot moved this from In Review to Done in ethrex_l1 Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L1 Ethereum client metrics Grafana, Prometheus, etc

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants