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

cmd/soroban-rpc/internal/events: Fix eventsDurationMetric #119

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

tamirms
Copy link
Contributor

@tamirms tamirms commented Mar 29, 2024

What

In the scan operation there were some cases where we were not recording metrics properly. Specifically, if a scan terminated early without any errors we did not call m.eventsDurationMetric.With(prometheus.Labels{"operation": "scan"}).Observe(time.Since(startTime).Seconds())

Known limitations

[N/A]

@tamirms tamirms requested a review from a team March 29, 2024 11:05
@tamirms tamirms merged commit 1f735e2 into main Mar 29, 2024
20 checks passed
@tamirms tamirms deleted the fix-events-metric branch March 29, 2024 12:08
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