-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[Reporting] Additional CSV job output metrics #124600
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -221,6 +221,7 @@ export class ExecuteReportTask implements ReportingTask { | |
| docOutput.content_type = output.content_type || unknownMime; | ||
| docOutput.max_size_reached = output.max_size_reached; | ||
| docOutput.csv_contains_formulas = output.csv_contains_formulas; | ||
| docOutput.csv_rows = output.csv_rows; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it is missing in
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have discussed moving the location |
||
| docOutput.size = output.size; | ||
| docOutput.warnings = | ||
| output.warnings && output.warnings.length > 0 ? output.warnings : undefined; | ||
|
|
@@ -363,7 +364,10 @@ export class ExecuteReportTask implements ReportingTask { | |
| report._seq_no = stream.getSeqNo()!; | ||
| report._primary_term = stream.getPrimaryTerm()!; | ||
|
|
||
| eventLog.logExecutionComplete({ byteSize: stream.bytesWritten }); | ||
| eventLog.logExecutionComplete({ | ||
| byteSize: stream.bytesWritten, | ||
| csvRows: output?.csv_rows, | ||
| }); | ||
|
|
||
| if (output) { | ||
| this.logger.debug(`Job output size: ${stream.bytesWritten} bytes.`); | ||
|
|
||
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.
I really wonder if this should be:
We could have more CSV-specific metrics: number of columns in the CSV is one. But if there are other settings that affect performance, we should think of adding them as well.