Repository navigation
Remove extra emit of request metrics - #5630
Merged
Merged
Conversation
ankur22
temporarily deployed
to
azure-trusted-signing
February 9, 2026 22:01 — with
GitHub Actions
Inactive
ankur22
temporarily deployed
to
azure-trusted-signing
February 9, 2026 22:04 — with
GitHub Actions
Inactive
ankur22
force-pushed
the
fix/extra-emit-of-request-metrics
branch
from
February 9, 2026 23:17
fca34be to
7d765fe
Compare
ankur22
temporarily deployed
to
azure-trusted-signing
February 9, 2026 23:24 — with
GitHub Actions
Inactive
ankur22
temporarily deployed
to
azure-trusted-signing
February 9, 2026 23:26 — with
GitHub Actions
Inactive
ankur22
marked this pull request as ready for review
February 17, 2026 13:17
ankur22
requested review from
codebien and
szkiba
and removed request for
a team
February 17, 2026 13:17
This is incorrect behaviour. The redirectChain grows after ever redirect by one. So in the old behaviour it would loop over all the elements in redirectChain and emit a metric for that element, even if it has already done son in a previous redirect -- i.e. it is compounding.
ankur22
force-pushed
the
fix/extra-emit-of-request-metrics
branch
from
March 4, 2026 12:51
7d765fe to
2cded6e
Compare
ankur22
temporarily deployed
to
azure-trusted-signing
March 4, 2026 12:58 — with
GitHub Actions
Inactive
ankur22
temporarily deployed
to
azure-trusted-signing
March 4, 2026 12:59 — with
GitHub Actions
Inactive
Contributor
|
Moving it to the next milestone to unlock the ongoing release process. |
szkiba
approved these changes
Mar 25, 2026
ankur22
temporarily deployed
to
azure-trusted-signing
April 2, 2026 15:45 — with
GitHub Actions
Inactive
ankur22
temporarily deployed
to
azure-trusted-signing
April 2, 2026 15:48 — with
GitHub Actions
Inactive
codebien
approved these changes
Apr 2, 2026
4 of 8 tasks
inancgumus
pushed a commit
that referenced
this pull request
May 15, 2026
This is incorrect behaviour. The redirectChain grows after ever redirect by one. So in the old behaviour it would loop over all the elements in redirectChain and emit a metric for that element, even if it has already done son in a previous redirect -- i.e. it is compounding. Co-authored-by: Ankur <ankur.agarwal@grafana.com>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Removes call to emit metrics during redirects. The emitting of the request metric is done at the end of the onRequest function in any case.
Why?
This is incorrect behaviour. The redirectChain grows after ever redirect by one. So in the old behaviour it would loop over all the elements in redirectChain and emit a metric for that element, even if it has already done son in a previous redirect -- i.e. it is compounding.
Checklist
make check) and all pass.Checklist: Documentation (only for k6 maintainers and if relevant)
Please do not merge this PR until the following items are filled out.
Related PR(s)/Issue(s)