Skip to content

Adding beholder metrics to txm#381

Merged
yashnevatia merged 1 commit intodevelopfrom
aptos-txm-beholder
Mar 10, 2026
Merged

Adding beholder metrics to txm#381
yashnevatia merged 1 commit intodevelopfrom
aptos-txm-beholder

Conversation

@yashnevatia
Copy link
Contributor

No description provided.

@yashnevatia yashnevatia requested a review from a team as a code owner March 10, 2026 10:39
@github-actions
Copy link
Contributor

👋 yashnevatia, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

Copy link
Collaborator

@cawthorne cawthorne left a comment

Choose a reason for hiding this comment

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

LGTM

@yashnevatia yashnevatia enabled auto-merge (squash) March 10, 2026 14:53
@yashnevatia yashnevatia merged commit 4544c84 into develop Mar 10, 2026
19 checks passed
@yashnevatia yashnevatia deleted the aptos-txm-beholder branch March 10, 2026 14:55

// TODO: Config input is not validated for sanity
func New(lgr logger.Logger, keystore loop.Keystore, config Config, getClient func() (aptos.AptosRpcClient, error)) (*AptosTxm, error) {
func New(lgr logger.Logger, keystore loop.Keystore, config Config, getClient func() (aptos.AptosRpcClient, error), chainID string) (*AptosTxm, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

ChainID is available in the client

"github.com/smartcontractkit/chainlink-common/pkg/metrics"
)

var (
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth adding tags? so when we submit the same metric from different branch in the code such as on failure, it might be useful to identify the failure

Copy link
Contributor Author

Choose a reason for hiding this comment

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

a.metrics.IncrementFinalizedTxs(ctx)
} else {
ctxLogger.Debugw("tx is still unconfirmed", "hash", hash, "chainTx", chainTx)
totalPending++
Copy link
Contributor

Choose a reason for hiding this comment

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

If we can't store or retry then we have an overcount

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