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

[hnygrpc] add a human readable version of the grpc status code to auto instrumentation #287

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

maplebed
Copy link
Contributor

@maplebed maplebed commented Nov 5, 2021

Which problem is this PR solving?

When looking at traffic instrumented with hnygrpc, I break down by handler.method and response.grpc_status_code. This is all well and good, but what I get back for the status code is 0,12, 16.

While HTTP has been around long enough that many folks know what 200 and 404 mean, I don't have the same drilled-in understanding of what grpc codes 12 and 16 are. (turns out, Unimplemented and Unauthenticated. reference)

Short description of the changes

To aid the people using this instrumentation, this change augments response.grpc_status_code with response.grpc_status_message that contains the .String() version of the code, so people can see Unimplemented next to 12 when looking at their responses.

@maplebed maplebed requested a review from a team November 5, 2021 16:05
Copy link
Contributor

@MikeGoldsmith MikeGoldsmith left a comment

Choose a reason for hiding this comment

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

Great change, thanks @maplebed 👍🏻

@MikeGoldsmith MikeGoldsmith added type: enhancement New feature or request version: bump patch A PR with release-worthy changes and is backwards-compatible. labels Nov 8, 2021
@MikeGoldsmith MikeGoldsmith merged commit 5ac22a1 into main Nov 8, 2021
@MikeGoldsmith MikeGoldsmith deleted the ben.grpc_string_status branch November 8, 2021 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request version: bump patch A PR with release-worthy changes and is backwards-compatible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants