[Reporting] Add an error code field to explain the nature of the job failure #125139
Labels
bug
Fixes for quality problems that affect the customer experience
(Deprecated) Feature:Reporting
Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
loe:large
Large Level of Effort
Part 1: A report job can fail for a number of reasons. The code tries to capture any error that is available, but the nature of some errors makes that infeasible:
stop
cycle of Kibana plugins: if there is a job running, then fail the job with a specific error messagekibana.yml
hasxpack.screenshotting.networkPolicy.rules
defined, Reporting shuts down the browser when a URL that violates the policy is encounteredPart 2: Today, a security error is ignored if encountered during CSV report execution. This creates confusion if authentication worked at the beginning of execution, but stopped working during execution - which can happen when using authentication tokens that have a short expiration. We should handle this event specifically with an error code. When this happens, the user should be able to download as much CSV as could be compiled, so the report job status should be
completed_with_warnings
.In total, this issue covers adding codes for the following events:
Worker thread ran out of memory, when that option is available[Reporting] Give users better information when pdf fails #126171Authentication expired during report execution[Reporting] Capture CSV error codes #125812The error code will be saved as a new field in the report job mapping. It will be a mapped type, allowing us to aggregate by different types of errors. That becomes useful for telemetry and Monitoring of Reporting.
The text was updated successfully, but these errors were encountered: