`endsWith` and `contains` should be included here - or pattern matching
You might all this a feature request but I find it to be defective that you have a function to determine if an attribute "starts with" but not a function for "ends with". This makes it difficult to do things such as pick apart contexts from strings like
For example, if I wanted to say "subscribe to all messages from mydomain" then hasPrefix(com.mycompany.mydomain) makes sense. But if I wanted to say "subscribe to any domain that publishes myevent" then I would need hasSuffix(myevent.v1).
That said, I would also need something to determine something in the middle. For example "subscribe to any domain that publishes any version of my event" might be something like contains(myevent)
Another great (and common) feature would be some rudimentary pattern matching such as wildcards which would allow me to express any of the aforementioned scenarios more eloquently:
attributes.event-type matches com.mycompany.mydomain*
attributes.event-type matches *.myevent.v1
attributes.event-type matches *.myevent.*