-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Adding an optional replacementFormat argument to the replace_pattern editors that specified the format of the replacement string #30837
Adding an optional replacementFormat argument to the replace_pattern editors that specified the format of the replacement string #30837
Conversation
5fe3ba6
to
2e1cb9d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked over this quickly and I definitely prefer this solution to #30403. I'll try an do an in-depth review later this week.
Also the latest comment in the issue highlights why I am glad we are taking our time with this issue, as neither PRs would help that user. Currying and/or some other generic looping solution continues to look promising.
d28cecd
to
eafac30
Compare
@TylerHelmuth @evan-bradley thanks for looking at this! 👍 Please let me know if there are any other concerns |
e596b45
to
88e8915
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need this updated in the replace_[all_]matches
functions for consistency.
88e8915
to
cf3c9ac
Compare
@evan-bradley I've added support for replacement format in the |
f4b940f
to
91e2a9c
Compare
a6aa6da
to
df5422d
Compare
c98078a
to
9761559
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks again for your persistence. Just a few readme nits at this point.
…replace_pattern editors
9761559
to
b72a525
Compare
…editors that specified the format of the replacement string (open-telemetry#30837) Description: Adding an optional replacementFormat argument to the replace_pattern editors that specified the format of the replacement string Testing: Unit tests were added for this new optional argument Documentation: https://github.com/rnishtala-sumo/opentelemetry-collector-contrib/blob/ottl-replace-pattern/pkg/ottl/ottlfuncs/README.md#replace_pattern
Description: Adding an optional replacementFormat argument to the replace_pattern editors that specified the format of the replacement string
Testing: Unit tests were added for this new optional argument
Documentation:
https://github.com/rnishtala-sumo/opentelemetry-collector-contrib/blob/ottl-replace-pattern/pkg/ottl/ottlfuncs/README.md#replace_pattern