Skip to content

feat(alpen-client): add tag to alpen logs to distinguish from reth logs#1948

Open
sapinb wants to merge 2 commits into
mainfrom
feat/reth-alpen-log-split
Open

feat(alpen-client): add tag to alpen logs to distinguish from reth logs#1948
sapinb wants to merge 2 commits into
mainfrom
feat/reth-alpen-log-split

Conversation

@sapinb

@sapinb sapinb commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Description

Add a tag component = alpen on all non-reth logs to allow logs from reth and non-reth (ie. alpen services) to be filtered and displayed separately.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature/Enhancement (non-breaking change which adds functionality or enhances an existing one)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor
  • New or updated tests
  • Dependency Update

Notes to Reviewers

This looks pretty messy right now, but should get better over time as we clean up the binary code and move more parts to use service framework. Please do suggest if there is a better way to do this right now.

@purusang @madan-oss will component = alpen conflict with anything currently in our log monitoring ?

Is this PR addressing any specification, design doc or external reference document?

  • Yes
  • No

If yes, please add relevant links:

Checklist

  • I have performed a self-review of my code.
  • I have commented my code where necessary.
  • I have updated the documentation if needed.
  • My changes do not introduce new warnings.
  • I have added (where necessary) tests that prove my changes are effective or that my feature works.
  • New and existing tests pass with my changes.
  • I have disclosed my use of AI in the body of this PR.

Related Issues

@sapinb sapinb requested review from madan-oss and purusang June 5, 2026 13:45
@sapinb sapinb requested review from bewakes and storopoli as code owners June 5, 2026 13:45

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: de48846e8b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread bin/alpen-client/src/services/exec_chain.rs Outdated
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Commit: 10e4a4b

SP1 Execution Results

program cycles gas
EVM EE Chunk 824,732 969,395
EVM EE Account 404,056 498,593
Checkpoint 2,601,525 3,007,269

@codecov

codecov Bot commented Jun 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.18182% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.42%. Comparing base (81d4e77) to head (ac62b4e).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
bin/alpen-client/src/main.rs 94.02% 4 Missing ⚠️
bin/alpen-client/src/services/exec_chain.rs 83.33% 2 Missing ⚠️
@@            Coverage Diff             @@
##             main    #1948      +/-   ##
==========================================
- Coverage   84.46%   84.42%   -0.05%     
==========================================
  Files         637      637              
  Lines       76670    76695      +25     
==========================================
- Hits        64757    64746      -11     
- Misses      11913    11949      +36     
Flag Coverage Δ
functional 66.33% <93.18%> (-0.10%) ⬇️
unit 69.73% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
bin/alpen-client/src/service_executor.rs 100.00% <100.00%> (ø)
bin/alpen-client/src/services/ol_tracker.rs 92.40% <100.00%> (ø)
bin/alpen-client/src/services/exec_chain.rs 94.59% <83.33%> (+0.30%) ⬆️
bin/alpen-client/src/main.rs 91.32% <94.02%> (+0.24%) ⬆️

... and 6 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Add a tag `component = alpen` on all non-reth logs to allow easier filtering for monitoring.
@sapinb sapinb force-pushed the feat/reth-alpen-log-split branch from de48846 to 908c683 Compare June 8, 2026 06:19
Convert all info_span that add component = "alpen" tags on alpen service logs to error_span.
This ensures the tag is always added regardless of log level.
@sapinb sapinb force-pushed the feat/reth-alpen-log-split branch from 908c683 to ac62b4e Compare June 8, 2026 07:35
Comment thread bin/alpen-client/src/main.rs Outdated
let health_check_addr = format!("{}:{}", ext.health_check_host, ext.health_check_port);
let _health_check_handle =
start_health_check_server(health_check_addr.clone(), health_check_state.clone())
.instrument(error_span!("start_health_check_server", component = "alpen"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Won't error_span log error when this span terminates even though it is not an error?

@purusang

purusang commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

@purusang @madan-oss will component = alpen conflict with anything currently in our log monitoring ?

I do not think there is any. cc: @madan-oss

@sapinb sapinb mentioned this pull request Jun 8, 2026
16 tasks

@storopoli storopoli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK ac62b4e

@storopoli storopoli enabled auto-merge June 8, 2026 13:45
@storopoli

Copy link
Copy Markdown
Member

@sapinb rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants