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(server): Add upstream request metric #793

Merged
merged 26 commits into from
Oct 6, 2020

Conversation

RaduW
Copy link
Contributor

@RaduW RaduW commented Oct 5, 2020

Adds upstream request metric.

@RaduW RaduW requested a review from a team October 5, 2020 09:16
@RaduW RaduW requested review from jan-auer, beezz and tonyo October 5, 2020 09:19
relay-server/src/actors/upstream.rs Outdated Show resolved Hide resolved
relay-server/src/actors/upstream.rs Show resolved Hide resolved
relay-server/src/actors/upstream.rs Show resolved Hide resolved
relay-server/src/metrics.rs Outdated Show resolved Hide resolved
RaduW and others added 3 commits October 5, 2020 17:01
@RaduW RaduW requested a review from jan-auer October 5, 2020 15:32
Copy link
Member

@jan-auer jan-auer left a 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")
Copy link
Member

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.

relay-server/src/metrics.rs Outdated Show resolved Hide resolved
@RaduW RaduW merged commit 90ed419 into master Oct 6, 2020
@RaduW RaduW deleted the feat/upstream-req-retry-metrics branch October 6, 2020 15:51
jan-auer added a commit that referenced this pull request Oct 7, 2020
* master:
  fix(server): Do not send None relay action (#796)
  feat(server): Add upstream request metric (#793)
  meta(git): Skip removed files in precommit hook (#797)
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