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

fix(apdex): show all metrics in report #2210

Merged

Conversation

InesNi
Copy link
Contributor

@InesNi InesNi commented Oct 12, 2023

Related to #2209

What

Making apdex plugin show all 3 metrics in the report even if their count is 0 (even if no metrics were frustrated/satisfied/tolerated) just like we do for vusers.failed. This is needed so that when the threshold for the given apdex metric is set in the ensure plugin, the ensure does not fail the check for metrics whose count is 0.

@InesNi InesNi requested a review from a team October 12, 2023 20:05
@@ -36,13 +36,21 @@ class ApdexPlugin {

function apdexAfterResponse(req, res, userContext, events, done) {
const total = res.timings.phases.total;
const counts = {
Copy link
Member

Choose a reason for hiding this comment

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

Personal preference, but I'd emit all 3 metrics with value of 0 here at the beginning of the function, and keep the rest of the function the same.

@hassy hassy self-requested a review October 12, 2023 20:21
@InesNi InesNi merged commit 683e569 into main Oct 13, 2023
6 checks passed
@InesNi InesNi deleted the ifazlic-art-1400-report-apdex-metrics-even-if-their-count-is-0 branch October 13, 2023 08:41
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.

2 participants