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

[im-2290] Instrument timeout exceptions #110

Merged
merged 3 commits into from
May 28, 2024

Conversation

anujc4
Copy link
Contributor

@anujc4 anujc4 commented May 22, 2024

DESCRIPTION

JIRA Ticket: im-2290

CHANGELOG:

Instrument timeout exceptions. There are a few tests failing on the PR, but these are unrelated to my changes and have been failing on the CI for some time now.

@anujc4 anujc4 changed the title [im-2290] 20% of riders not able to accept new orders or log-in for 7 minutes [im-2290] Instrument timeout exceptions May 22, 2024
@anujc4 anujc4 requested a review from smnalex May 22, 2024 13:28
@@ -22,6 +22,9 @@ def call(request_env)
rescue Routemaster::Errors::BaseError => e
increment_response_count(response_tags(e.env))
raise e
rescue Faraday::TimeoutError => e
Copy link
Contributor

Choose a reason for hiding this comment

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

(If the circuit is open we won't report any metrics)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, but we would know how many timeouts we received before the breaker was tripped. We anyway don't push any metric once a circuit trips. We would have to record circuitbox metrics for that information.

@@ -22,6 +22,9 @@ def call(request_env)
rescue Routemaster::Errors::BaseError => e
increment_response_count(response_tags(e.env))
raise e
rescue Faraday::TimeoutError => e
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add connection too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wdym? Routemaster::Errors::BaseError and Faraday::TimeoutError are the only exceptions that are monitored by CircuitBox

Copy link
Contributor

@smnalex smnalex May 22, 2024

Choose a reason for hiding this comment

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

I meant Faraday::ConnectionFailed, but sorry, forgot that you made this change only for CB.

@anujc4 anujc4 requested a review from a team as a code owner May 28, 2024 08:56
@anujc4 anujc4 merged commit ec008a2 into master May 28, 2024
4 of 5 checks passed
@anujc4 anujc4 deleted the im-2290/trace_faraday_timeout_exceptions branch May 28, 2024 09:37
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