Skip to content

feat: scrape metrics data#22840

Merged
alexghr merged 1 commit intomerge-train/spartanfrom
ag/net-bench-scrape
Apr 29, 2026
Merged

feat: scrape metrics data#22840
alexghr merged 1 commit intomerge-train/spartanfrom
ag/net-bench-scrape

Conversation

@alexghr
Copy link
Copy Markdown
Contributor

@alexghr alexghr commented Apr 29, 2026

.

Comment on lines +280 to 298
this.logCheckpointEvent('publish-failed', `Checkpoint publish failed for slot ${this.targetSlot}`, {
slot: this.targetSlot,
checkpointNumber: this.checkpointNumber,
successfulActions: l1Response?.successfulActions,
failedActions: l1Response?.failedActions,
sentActions: l1Response?.sentActions,
expiredActions: l1Response?.expiredActions,
reason: 'propose_action_not_successful',
});
this.log.warn(`Checkpoint publish failed for slot ${this.targetSlot}`, {
slot: this.targetSlot,
checkpointNumber: this.checkpointNumber,
successfulActions: l1Response?.successfulActions,
failedActions: l1Response?.failedActions,
sentActions: l1Response?.sentActions,
expiredActions: l1Response?.expiredActions,
reason: 'propose_action_not_successful',
});
this.eventEmitter.emit('checkpoint-publish-failed', { ...l1Response, slot: this.targetSlot });
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.

Do you think we could refactor the log+logevent+emitevent into a helper function that handles all three? This may require unifying the checkpoint-events and the events emitted by the event-emitter, but they are pretty close. No need to do now though, it's just for cleanup.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, I'll open the next PR to address this!

@alexghr alexghr force-pushed the ag/net-bench-scrape branch from 23c24be to d69f67b Compare April 29, 2026 12:59
@alexghr alexghr merged commit eda32cd into merge-train/spartan Apr 29, 2026
12 checks passed
@alexghr alexghr deleted the ag/net-bench-scrape branch April 29, 2026 21:46
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.

3 participants