Skip to content

feat: replicator capture events for candidate to statemap install and publish metrics#149

Merged
gk-kindred merged 8 commits intomasterfrom
feature/overall-journey-metrics-for-replicator
Sep 9, 2025
Merged

feat: replicator capture events for candidate to statemap install and publish metrics#149
gk-kindred merged 8 commits intomasterfrom
feature/overall-journey-metrics-for-replicator

Conversation

@gk-kindred
Copy link
Collaborator

  • Capture the various events in the journey from candidate and decision message to statemap install
  • Capture metrics from the events for candidate message received to statemap install and decision message received to statemap install
  • This lays the foundation for the capturing events for various points during the journey of candidate received and to when its corresponding statemaps were install. This could be exposed to consuming apps later to build their own metrics.

@gk-kindred gk-kindred requested a review from hamisor September 8, 2025 00:08
hamisor
hamisor previously approved these changes Sep 8, 2025
Copy link

@hamisor hamisor left a comment

Choose a reason for hiding this comment

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

LGTM. just couple of minor comments to remove the obsolete fields

&version,
StatemapInstallerHashmap {
timestamp: OffsetDateTime::now_utc().unix_timestamp_nanos(),
// timestamp: OffsetDateTime::now_utc().unix_timestamp_nanos(),
Copy link

Choose a reason for hiding this comment

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

I can see this is now replaced by StatemapEvents, suggest to remove timestamp

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated

pub struct StatemapInstallerHashmap {
// enqueued at
pub timestamp: i128, // nanos
// pub timestamp: i128, // nanos
Copy link

Choose a reason for hiding this comment

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

same here to remove obsolete timestamp

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated

Copy link

@hamisor hamisor left a comment

Choose a reason for hiding this comment

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

only c_install_failed error counter metrics is present. is this suffice? also, should the name be configurable as well

@hamisor hamisor self-requested a review September 8, 2025 11:48
@hamisor hamisor dismissed their stale review September 8, 2025 11:49

pending questions to be resolved

@hamisor hamisor requested review from akaur13 and removed request for ankurKindred September 9, 2025 00:05
@gk-kindred gk-kindred merged commit 2c5b026 into master Sep 9, 2025
2 checks passed
@gk-kindred gk-kindred deleted the feature/overall-journey-metrics-for-replicator branch September 9, 2025 01:14
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.

2 participants