open-telemetry / open-telemetry/opentelemetry-python-contrib
SDK should automatically truncate large values
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 1.1k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 16
Description
There are some cases where instrumentations are individually truncating large byte values such as is used in both the boto and botocore instrumentations.
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the linked botocore instrumentation in instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/init.py around lines 159-166, then trace how span attributes are handled by the SDK. Done means a configurable maximum length automatically truncates oversized span attribute values so instrumentations and exporters receive the truncated values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100