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

Default value of OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT is not working well #994

Open
katzchang opened this issue Dec 19, 2024 · 1 comment
Open

Comments

@katzchang
Copy link

https://docs.splunk.com/observability/en/gdi/get-data-in/application/nodejs/configuration/advanced-nodejs-otel-configuration.html#trace-configuration

This document states that the default value of OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT is 1200 and that attribute values longer than this will be truncated, but in reality attribute values longer than this may be sent to the backend.

process.env.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT =
getNonEmptyEnvVar('OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT') ?? '12000';

Looking at the code, it is defined as 12000, which is probably the cause.

So the document or code will need to be fixed.

@seemk
Copy link
Contributor

seemk commented Dec 19, 2024

Thanks! Passed this on, should hopefully be updated soon

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

No branches or pull requests

2 participants