-
Notifications
You must be signed in to change notification settings - Fork 0
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
workflow: support generate log action #41
base: main
Are you sure you want to change the base?
Conversation
Along with various math transforms for field generation. Signed-off-by: Matt Klein <[email protected]>
string message = 1; | ||
repeated GeneratedField fields = 2; |
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.
what would be the log level and log type of the generated log? do you want that configurable?
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.
Yeah good question. We should probably make it configurable. @Reflejo ?
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.
probably let them set the log level but not the type? I think that's pretty opaque for user consumption
// Perform subtraction. lhs - rhs. Both values must be convertible to floating point. | ||
ValueReferencePair subtract = 3; | ||
|
||
// Perform addition. lhs + rhs. Both values must be convertible to floating point. | ||
ValueReferencePair add = 4; | ||
|
||
// Perform multiplication. lhs * rhs. Both values must be convertible to floating point. | ||
ValueReferencePair multiply = 5; | ||
|
||
// Perform division. lhs / rhs. Both values must be convertible to floating point. | ||
ValueReferencePair divide = 6; |
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.
What happens if the two values are not divisible?
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.
Another good question. IMO we have 3 options:
- Just drop the field entirely.
- Empty string for value.
- "NaN"
I vote 3. WDYT? @Reflejo
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.
This is the same for when strings are not numbers, right? NaN makes sense assuming histograms know how to deal with that
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.
Yeah exactly. I will make sure the histogram code correctly drops NaN stuff.
Along with various math transforms for field generation.