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

[pkg/ottl] Update IsMatch to convert bool int and float to strings #16503

Merged
merged 8 commits into from
Nov 29, 2022

Conversation

TylerHelmuth
Copy link
Member

Description:
Updates IsMatch to intelligently convert bools, ints, and floats to strings before matching with the regex. This helps with IsMatch and attributes usage.

Link to tracking Issue:
Closes #16434

Testing:
Updated unit tests

Documentation:
Updated IsMatch documentation

pkg/ottl/ottlfuncs/README.md Outdated Show resolved Hide resolved
@github-actions github-actions bot requested a review from bogdandrutu November 29, 2022 00:03
pkg/ottl/ottlfuncs/func_is_match.go Outdated Show resolved Hide resolved
@github-actions github-actions bot requested a review from bogdandrutu November 29, 2022 01:14
@github-actions github-actions bot requested a review from bogdandrutu November 29, 2022 01:47
@TylerHelmuth TylerHelmuth added the ready to merge Code review completed; ready to merge by maintainers label Nov 29, 2022
@codeboten codeboten merged commit d75bb8d into open-telemetry:main Nov 29, 2022
@TylerHelmuth TylerHelmuth deleted the ottl-improve-ismatch branch November 29, 2022 20:08
shalper2 pushed a commit to shalper2/opentelemetry-collector-contrib that referenced this pull request Dec 6, 2022
…pen-telemetry#16503)

Updates IsMatch to intelligently convert bools, ints, and floats to strings before matching with the regex. This helps with IsMatch and attributes usage.

Co-authored-by: Evan Bradley <[email protected]>
Co-authored-by: Bogdan Drutu <[email protected]>
@plantfansam plantfansam mentioned this pull request Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg/ottl ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[pkg/ottl] update IsMatch to convert bool, double, and int to string.
4 participants