opentelemetry-python-contrib
opentelemetry-python-contrib copied to clipboard
SDK should automatically truncate large values
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.