Enhance gdk report command to send data to telemetry
Overview
As a simple way to have the data of gdk report available, use the infrastructure around Telemetry to send the report as JSON. This should only happen if the user agrees to it.
After the report has been sent, return a UUID that identifies the report in Grafana.
Impacted categories
The following categories relate to this issue:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
gdk-usability - e.g. Improvements or suggestions around how the GDK functions. -
gdk-performance - e.g. When a GDK action is slow or times out.
Steps to replicate
- Run
gdk report - Get a prompt showing the report that will be sent through Telemetry
- Accept with
y - Get a UUID identifying the report
- Get the report as Markdown
- Open Grafana and find the report with the returned UUID
- Run
gdk report - Get a prompt showing the report that will be sent through Telemetry
- Deny with
n - Get the report as Markdown
Proposal
- Use the existing Telemetry infrastructure to send the created JSON from Create gdk report command to print basic diagno... (#2590 - closed) when
gdk reportis run - Prompt the user to double check the report
- Send the report when user accepted
- Accept the
-yflag - Make it possible to deny the report to be sent
- Print the Markdown report as before
- (Add a configuration parameter to always accept to send the report)
Edited by Mohga Gamea