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

Attributes are truncated by number of bytes not number of characters #5996

Open
MrAlias opened this issue Nov 22, 2024 · 0 comments · May be fixed by #5997
Open

Attributes are truncated by number of bytes not number of characters #5996

MrAlias opened this issue Nov 22, 2024 · 0 comments · May be fixed by #5997
Assignees
Labels
bug Something isn't working
Milestone

Comments

@MrAlias
Copy link
Contributor

MrAlias commented Nov 22, 2024

Adding an attribute of a span with the string value こんにちは and an attribute value length of 3 set will result in the attribute value being . It should be こんに according to the OTel specification:

  • set an attribute value length limit such that for each attribute value:
    • if it is a string, if it exceeds that limit (counting any character in it as 1), SDKs MUST truncate that value, so that its length is at most equal to the limit,
@MrAlias MrAlias added the bug Something isn't working label Nov 22, 2024
@MrAlias MrAlias self-assigned this Nov 22, 2024
MrAlias added a commit to MrAlias/opentelemetry-go that referenced this issue Nov 22, 2024
@MrAlias MrAlias linked a pull request Nov 22, 2024 that will close this issue
MrAlias added a commit to MrAlias/opentelemetry-go that referenced this issue Nov 22, 2024
@MrAlias MrAlias added this to the v1.33.0 milestone Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant