-
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
feat: allow math expressions for time and duration #24453
feat: allow math expressions for time and duration #24453
Conversation
…we/opentelemetry-collector-contrib into feat/math-time-duration
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.
Lets add some tests to Test_evaluateMathExpression_error
that check that we get errors if we try to use incorrect operands or incorrect types.
Co-authored-by: Tyler Helmuth <[email protected]>
Co-authored-by: Tyler Helmuth <[email protected]>
…we/opentelemetry-collector-contrib into feat/math-time-duration
@TylerHelmuth I've added some tests checking for various cases that should error. Let me know if you think I'm missing some cases. |
@evan-bradley can you take a look at this one |
Co-authored-by: Evan Bradley <[email protected]>
@TylerHelmuth do you think we're ready for merge yet? |
Description: Allows addition and subtraction between times and duration according to rules in #22009
Link to tracking Issue: Closes #22009
Testing: Unit testing for math operations
Documentation: