-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[APM] Agent span_frames_min_duration configuration input cannot handle 0 or -1 #62777
[APM] Agent span_frames_min_duration configuration input cannot handle 0 or -1 #62777
Conversation
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.
It works in general, but if I set the value to -2 or less I get an error "Please specify an integer and a unit" on the field. This works in that we're validating that we don't want < -1, but is confusing. Could we put min="-1"
on the number input element?
Let me know if that's not possible and I'll approve, but while this fixes the main problem, the < -1 behavior is still weird.
I can change the error message to something like |
Yes that's probably fine for now. Using the |
Ok, it was an easy fix to add the min property. 4321992, I added the default value as 1, because before the duration was validating if the value was > 0. |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…e 0 or -1 (elastic#62777) * changing duration min value for span_frames_min_duration * adding min property to number field
…e 0 or -1 (elastic#62777) * changing duration min value for span_frames_min_duration * adding min property to number field
closes #62569