-
Notifications
You must be signed in to change notification settings - Fork 93
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(server): Add upstream request metric #793
Conversation
Co-authored-by: Markus Unterwaditzer <markus-honeypot@unterwaditzer.net>
This was done for testing with sub second timeouts.
Co-authored-by: Jan Michael Auer <mail@jauer.org>
Co-authored-by: Jan Michael Auer <mail@jauer.org>
# Conflicts: # relay-config/src/config.rs # relay-server/src/actors/upstream.rs
Co-authored-by: Jan Michael Auer <mail@jauer.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two suggestions for consistency, otherwise good to go 👍
Thanks, @RaduW!
let (status_code, result) = match send_result { | ||
Ok(ref client_response) => { | ||
sc = client_response.status(); | ||
(sc.as_str(), "success") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Inline client_response.status().as_str()
and remove the outer scope variable.
Co-authored-by: Jan Michael Auer <mail@jauer.org>
Adds upstream request metric.