-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
Description
Component(s)
pkg/ottl
Is your feature request related to a problem? Please describe.
OTTL currently does not support finding the index of a particular item within a slice or string.
Describe the solution you'd like
The new Index(source, value) function would be used to find the index of the first occurrence of value in source, being value the item we're looking for, and source a slice or string. If the value is not present, -1 could be returned.
Describe alternatives you've considered
No response
Additional context
No response