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

Unicode event header/body lengths are not correctly calculated #148

Closed
1 task
sgnn7 opened this issue May 11, 2021 · 0 comments · Fixed by #149
Closed
1 task

Unicode event header/body lengths are not correctly calculated #148

sgnn7 opened this issue May 11, 2021 · 0 comments · Fixed by #149
Assignees
Labels

Comments

@sgnn7
Copy link
Contributor

sgnn7 commented May 11, 2021

Currently when sending an event using unicode characters, the length of the string sent to statsd is evaluated using codepoints, causing string clipping in the final data ingested. Also, Java uses UTF-16 and the agent expects UTF-8 so we have to use the UTF-8 calculations explicitly.

AC:

  • UTF-8 char[] length is used as the sent length of statsd event headers/message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant