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

[opentelemetry-exporter]: provide an option for max attribute value (currently it's hardcoded to 128 bytes) #934

Closed
mzahor opened this issue Apr 7, 2020 · 7 comments · Fixed by #901

Comments

@mzahor
Copy link
Contributor

mzahor commented Apr 7, 2020

Currently opentelemetry-exporter has a limit of 128 bytes for span's attribute value:


We have a use case where we need it to be bigger (we use our own exporter on the backend that sends all the data to Kinesis for further processing, so bigger values are not an issue for us).
I suggest to provide an optional config property called maxAttributeSize inside of this interface:

and then pass it down to the function is responsible for truncating:
export function toCollectorTruncatableString(

If you like the approach, I can prepare a PR today or tomorrow.
If you have any other ideas how to overcome this limitation - let's discuss them.

@dyladan
Copy link
Member

dyladan commented Apr 7, 2020

The exporter is changing to use the OTLP format in #901. I think we should address this after that merges?

@mayurkale22
Copy link
Member

I think this has already been addressed in #901. This limitations/restrictions were there due to old OpenCensus protos, now in latest OpenTelemetry proto they got ride of TruncatableString type.

@mayurkale22
Copy link
Member

@obecny could you please confirm the same?

@obecny
Copy link
Member

obecny commented Apr 7, 2020

@mayurkale22 It looks like it got rid it is not used anymore

@dyladan dyladan closed this as completed Apr 8, 2020
@dyladan dyladan reopened this Apr 8, 2020
@dyladan
Copy link
Member

dyladan commented Apr 8, 2020

I was going to close but this issue should be closed by #901

@mzahor
Copy link
Contributor Author

mzahor commented Apr 8, 2020

Thanks @dyladan. The new exporter should solve the issue with attribute value length. As far as I can see the collector already has otlp receiver, is there anything else we need in order for #901 to be released?

@dyladan
Copy link
Member

dyladan commented Apr 8, 2020

We're just waiting for reviews and to be confident in it before we release as it is a large change. Should be soon

pichlermarc pushed a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this issue Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants