Skip to content
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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

mattklein123
Copy link
Contributor

Along with various math transforms for field generation.

Along with various math transforms for field generation.

Signed-off-by: Matt Klein <[email protected]>
Comment on lines +199 to +200
string message = 1;
repeated GeneratedField fields = 2;
Copy link
Contributor

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?

Copy link
Contributor Author

@mattklein123 mattklein123 Mar 3, 2025

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 ?

Copy link
Contributor

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

Comment on lines +185 to +195
// 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;
Copy link
Contributor

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?

Copy link
Contributor Author

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:

  1. Just drop the field entirely.
  2. Empty string for value.
  3. "NaN"

I vote 3. WDYT? @Reflejo

Copy link
Contributor

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

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants