-
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
Add 'negative' value type for negative events #3656
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3656 +/- ##
==========================================
- Coverage 73.58% 73.51% -0.07%
==========================================
Files 277 275 -2
Lines 20247 20248 +1
==========================================
- Hits 14898 14885 -13
- Misses 4401 4409 +8
- Partials 948 954 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi sorry for the slow reply :( I have 2 problems with this solution:
To me it seems like the best solution was for us to reverse this ... years ago after this was reported and have the old metric for a while.
But that also depends on the above negative changes by the looks of it. It is great someone tried to fix so we can see how it looks, but to me this doesn't seem like the correct solution. I also would recommend showcasing how the UI changes when making changes to it. As an alternative solution making it obvious that is Also opentelemtry has units as part of the specificaiton which seem like at thing we can (ab)use to get this and hte other "value type" under control, but arguably that should be part of a bigger refactor if we go down this route. One that likely should wait for some opentelemtry work to be done (cc @olegbespalov ) |
Don't worry at all! :) To be honest, I don't have any strong preference, I opted for this approach because it seemed to me to be the one with greater acceptance, but it's true that this is difficult to measure. Also, because I felt that having this mechanism for defining whether a metric is positive or negative (or none) despite the unit, could be useful for other purposes. But it's also true that we don't have any immediate plans that justify that.
I think the question is.. do we really want that? If so, I can easily do it. But this looks like one of these situations where deciding what is way more challenging than deciding how, and actually doing it. |
I guess this is more a question for the issue? I will also paste this there. Arguably this solution has 2 possitives:
|
I would prefer if we do it now. The text proposal (as already suggested originally by Ned and now refined by Mihail) sounds already a good solution. |
What?
It adds a new value type
negative
for those metrics that represent negative events, and uses it in the defaulthandleSummary
to display either ✓ or ✗ for the amount of passes/fails based on that.Why?
Now the
handleSummary
always displays ✓ for passes and ✗ for fails, but that's not accurate (and even confusing) for those metrics that represent negative events (likehttp_req_failed
).So, I decided to give a try to @na--'s proposal on the reported issue, as a solution that can be used by any other
Rate
metric, not only byhttp_req_failed
.Also, because I feel that using a label instead of ✓ or ✗ might be more difficult to generalize. For instance, what would
fails
orpasses
(to give an example) mean in the context ofhttp_req_failed
? Or having to parameterize that (the labels) would start making the metric model a little bit more complex with no clear value.Checklist
make lint
) and all checks pass.make tests
) and all tests pass.Related PR(s)/Issue(s)
Closes #2306