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

[BUG] make sure span payload data are utf-8 safe string #7

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

bububa
Copy link
Contributor

@bububa bububa commented Sep 6, 2024

opentelemetry payload string must be utf-8 safe, related to issue Clarify that API users SHOULD use valid UTF-8 for exportable data #3421, otherwise grpc exporter will be failed with error message "traces export: rpc error: code = Internal desc = grpc: error while marshaling: string field contains invalid UTF-8"

payload in span Event must be converted to utf8 valid string with strings.ToValidUTF8 in both client and server.

@smallnest smallnest merged commit 93f572d into rpcxio:master Sep 6, 2024
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