-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix metrics for GRPC streams do not correctly include tags when stream ends #3746
Fix metrics for GRPC streams do not correctly include tags when stream ends #3746
Conversation
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.
Hi @cchamplin
Good catch! Thank you for your contribution!
The change looks good to me, but it is also essential to introduce the test for it. It could be similar to something from the cmd_run_grpc_test.go, and the getSampleValues could be used to extract metrics/tags.
Do you think you could address this, or should we consider splitting a test into a separate issue or pull request?
@cchamplin just double-checking if you don't have the capacity for the tests? I could take over; one thing is, could you please maybe name the case? I mean which metrics missed the custom tags? Thanks! |
Pushing to https://github.com/grafana/k6/milestone/42 while waiting for news. |
fa8e9e2
to
75be2ca
Compare
@olegbespalov @joanlopez I have added the test as requested, let me know if that works. |
75be2ca
to
6886cba
Compare
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.
@cchamplin great, thanks! I left the last comment about simplifying the logic. Apart from that, it seems green from my side 👍
Hey @cchamplin, |
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.
Okay, we could merge this as it's and update the test in a separate PR. Thanks for the contribution!
What?
Update the grpc stream being call to pass tags and params that include custom tags and method information
Why?
Addresses #3745
Checklist
make lint
) and all checks pass.make tests
) and all tests pass.Related PR(s)/Issue(s)
#3745
Closes #3745