opentelemetry-python-contrib icon indicating copy to clipboard operation
opentelemetry-python-contrib copied to clipboard

SDK should automatically truncate large values

Open NathanielRN opened this issue 3 years ago • 3 comments

There are some cases where instrumentations are individually truncating large byte values such as is used in both the boto and botocore instrumentations.

https://github.com/open-telemetry/opentelemetry-python-contrib/blob/5d4a5b5f92ef3e740ddb6f3855f4dac07a3ec308/instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/init.py#L159-L166

We should have a solution for the OTel SDK to automatically truncate span attribute values which are above some maximum length. This maximum length should be configurable.

This way all instrumentations and exporters can get this truncating behavior for free.

NathanielRN avatar Nov 16 '20 18:11 NathanielRN