Skip to content
New issue

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

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

Already on GitHub? # to your account

Consolidate rpc client metrics logic #3147

Merged
merged 1 commit into from
Jul 27, 2022
Merged

Consolidate rpc client metrics logic #3147

merged 1 commit into from
Jul 27, 2022

Conversation

dnr
Copy link
Member

@dnr dnr commented Jul 27, 2022

What changed?
The grpc wrappers for frontend/admin clients used different code than for matching/history clients. This consolidates them all to use the matching/history version, which is more feature-ful: it logs errors, and adds an error type tag to client_errors.

Why?
Fixes #3117: this makes all uses of the client_errors metric have the same set of tags.
Also, having one version of the logic is simpler (even if the code is duplicated).

How did you test it?
existing tests

Potential risks

Is hotfix candidate?

@dnr dnr requested a review from a team as a code owner July 27, 2022 01:39
@dnr dnr merged commit e857659 into temporalio:master Jul 27, 2022
alexshtin pushed a commit that referenced this pull request Jul 29, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible counter metric conflict
2 participants