Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add counter metrics to track quote submission #466

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Dewyer
Copy link
Contributor

@Dewyer Dewyer commented Apr 2, 2025

About

These changes should add extra metrics to submit quote about the kind of result that was received during the execution.

Metrics

# TYPE submit_quote_result counter
submit_quote_result{chain_id="local-solana",result="success"} 3

The code below creates these metrics, under submit_quote_result, and the result label contains the variant that was encountered.

Changes in the tiltfile

I made changes to the tiltfile that should add linux compatibility to the test searchers, while still working on mac os as well.

Copy link

vercel bot commented Apr 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
swap-staging ⬜️ Ignored (Inspect) Apr 2, 2025 4:36pm

@Dewyer Dewyer marked this pull request as ready for review April 3, 2025 07:57
@Dewyer Dewyer marked this pull request as draft April 3, 2025 10:55
) -> Result<VersionedTransaction, RestError> {
let result = self.submit_quote_inner(input).await;
let result_metric_label = if let Err(err) = &result {
err.error_name().to_string()
Copy link
Contributor

Choose a reason for hiding this comment

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

why not use variant_name directly here?

@danimhr
Copy link
Contributor

danimhr commented Apr 8, 2025

@Dewyer We may close this PR?

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