-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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(tracing): span start/end time precision #11484
Conversation
39ef131
to
03b336a
Compare
03b336a
to
cc11862
Compare
Rerunning all the tests as it seems the artificials are broken. |
cc11862
to
a331ebc
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.
I'm okay with this being merged.
9ed7459
to
564b9c2
Compare
Ensure the span lifetime is consistent with the hierarchy by using the same time source for the root span's end time as the balancer span. Before this fix, an approximation (causing a precision error) could result in the root span to end before its children.
Co-authored-by: Xumin <100666470+StarlightIbuki@users.noreply.github.com>
564b9c2
to
7f92e13
Compare
* fix(tracing): span start/end time precision Ensure the span lifetime is consistent with the hierarchy by using the same time source for the root span's end time as the balancer span. Before this fix, an approximation (causing a precision error) could result in the root span to end before its children. * docs(changelog): add issue Co-authored-by: Xumin <100666470+StarlightIbuki@users.noreply.github.com> --------- Co-authored-by: Xumin <100666470+StarlightIbuki@users.noreply.github.com> (cherry picked from commit 37a17eb)
* fix(tracing): span start/end time precision Ensure the span lifetime is consistent with the hierarchy by using the same time source for the root span's end time as the balancer span. Before this fix, an approximation (causing a precision error) could result in the root span to end before its children. * docs(changelog): add issue Co-authored-by: Xumin <100666470+StarlightIbuki@users.noreply.github.com> --------- Co-authored-by: Xumin <100666470+StarlightIbuki@users.noreply.github.com> (cherry picked from commit 37a17eb) Co-authored-by: Samuele <samuele@konghq.com>
@samugi is there a reason for not backporting this further (e.g 3.3) |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-release/3.3.x release/3.3.x
# Navigate to the new working tree
cd .worktrees/backport-release/3.3.x
# Create a new branch
git switch --create backport-11484-to-release/3.3.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 37a17eb491a8b85b2dd01f994bd48a3757ad216a
# Push it to GitHub
git push --set-upstream origin backport-11484-to-release/3.3.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-release/3.3.x Then, create a pull request where the |
* fix(tracing): span start/end time precision Ensure the span lifetime is consistent with the hierarchy by using the same time source for the root span's end time as the balancer span. Before this fix, an approximation (causing a precision error) could result in the root span to end before its children. * docs(changelog): add issue Co-authored-by: Xumin <100666470+StarlightIbuki@users.noreply.github.com> --------- Co-authored-by: Xumin <100666470+StarlightIbuki@users.noreply.github.com>
* fix(tracing): span start/end time precision Ensure the span lifetime is consistent with the hierarchy by using the same time source for the root span's end time as the balancer span. Before this fix, an approximation (causing a precision error) could result in the root span to end before its children. * docs(changelog): add issue Co-authored-by: Xumin <100666470+StarlightIbuki@users.noreply.github.com> --------- Co-authored-by: Xumin <100666470+StarlightIbuki@users.noreply.github.com>
Summary
Ensure the span lifetime is consistent with the spans hierarchy by using the same time precision for the root span's "end time" as the balancer span.
Before this fix, using millisecond precision instead of nano could result in the root span to end before its children.
Checklist
CHANGELOG/unreleased/kong
or addingskip-changelog
label on PR if unnecessary. README.md (Please ping @vm-001 if you need help)There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HEREFull changelog
Issue reference
KAG-2336
Fix #11294 (secondary issue reported in the comments)