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(plugin): do not shorten id when not w3c #10531

Merged
merged 3 commits into from Apr 13, 2023
Merged

fix(plugin): do not shorten id when not w3c #10531

merged 3 commits into from Apr 13, 2023

Conversation

StarlightIbuki
Copy link
Contributor

@StarlightIbuki StarlightIbuki commented Mar 21, 2023

Summary

A bug was introduced when trying to fix the tracing ID length issue.

We should only adjust the ID for specific headers instead of before calling propagate.

Checklist

  • The Pull Request has tests
  • There's an entry in the CHANGELOG
  • There is a user-facing docs PR N/A

Issue reference

Fix KAG-652

@StarlightIbuki StarlightIbuki force-pushed the fix/shorten-w3c branch 4 times, most recently from 22b1847 to a450983 Compare March 31, 2023 09:11
CHANGELOG.md Outdated Show resolved Hide resolved
end

return trace_id
end
Copy link
Member

Choose a reason for hiding this comment

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

It would better if we have a single "to_provider_trace_id(trace_id,provider_type)" and unit test the heck out of it instead of ensuring that we call the right function in the right if branch below.
Not a blocker for this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree. But let's wait until another larger round of refactoring to fix long-term issues.

StarlightIbuki and others added 3 commits April 13, 2023 10:41
Co-authored-by: Harry <harrybagdi@gmail.com>
Co-authored-by: Samuele Illuminati <samuele@konghq.com>
@samugi samugi merged commit cce3d60 into master Apr 13, 2023
26 checks passed
@samugi samugi deleted the fix/shorten-w3c branch April 13, 2023 07:51
@samugi
Copy link
Contributor

samugi commented Apr 13, 2023

ready to cherry-pick on EE @StarlightIbuki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants