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

[processor/transform] Add ability to truncate attributes #9546

Merged
merged 12 commits into from
May 3, 2022

Conversation

TylerHelmuth
Copy link
Member

@TylerHelmuth TylerHelmuth commented Apr 26, 2022

Description:
This PR adds to the transform processor the ability to truncate string values in maps. The intended goal being the ability to truncate string values on attributes and resource.attributes.

Link to tracking Issue:
#9366
This is one of two PR I plan to submit for this issue.

Testing:
Added unit tests and tested locally running the collector and tracegen

Documentation:
Updated README

Copy link
Member

@bogdandrutu bogdandrutu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc @anuraaga

Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvement @TylerHelmuth, just a couple of questions

@codeboten codeboten merged commit 9f53a5d into open-telemetry:main May 3, 2022
@TylerHelmuth TylerHelmuth deleted the issue-9366 branch May 3, 2022 22:10
djaglowski pushed a commit to djaglowski/opentelemetry-collector-contrib that referenced this pull request May 10, 2022
…try#9546)

* Add truncation function

* Add TODO

* Updated changelog

* Updated changelog

* Update name to truncateAll

* Fixed README

* added checked for negative limit

* Update changelog

* Updated exposed function name as truncate_all
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

Successfully merging this pull request may close these issues.

6 participants