-
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
[pkg/ottl] Add IsInt
Converter
#27894
Comments
Would this just match on any of the built-in Also, maybe an |
i'm interested in working on this issue :) |
Thanks @lazyplatypus, its all yours! |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
**Description:** <Describe what has changed.> Adds a new `IsInt` function to facilitate type checking. **Link to tracking Issue:** #27894 **Testing:** Added unit test **Documentation:** Updated the func readme. Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>
It can be closed because the #31307 was merged. |
**Description:** <Describe what has changed.> Adds a new `IsInt` function to facilitate type checking. **Link to tracking Issue:** open-telemetry#27894 **Testing:** Added unit test **Documentation:** Updated the func readme. Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>
Component(s)
pkg/ottl
Is your feature request related to a problem? Please describe.
OTTL has no way to check if a value is an
int
type.Describe the solution you'd like
Add a new Converter,
IsInt
that returns true if the given type is aint
(or equivalent type). It will work similarly to theIsString
function.The implementing PR should
pkg/ottl/ottlfuncs/functions.go
pkg/ottl/ottlfuncs/README.md
The text was updated successfully, but these errors were encountered: