mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 01:25:38 -05:00
Add Notebook telemetry events (#19848)
* add telemetry events * remove error message in telemetry
This commit is contained in:
@@ -602,6 +602,7 @@ export class CellModel extends Disposable implements ICellModel {
|
||||
}
|
||||
|
||||
public async runCell(notificationService?: INotificationService, connectionManagementService?: IConnectionManagementService): Promise<boolean> {
|
||||
let kernel: nb.IKernel | undefined;
|
||||
try {
|
||||
// Allow screen reader to announce when cell execution is started
|
||||
alert(localize('cellExecutionStarted', "Cell execution started"));
|
||||
@@ -618,7 +619,7 @@ export class CellModel extends Disposable implements ICellModel {
|
||||
// for this property
|
||||
return false;
|
||||
}
|
||||
let kernel = await this.getOrStartKernel(notificationService);
|
||||
kernel = await this.getOrStartKernel(notificationService);
|
||||
if (!kernel) {
|
||||
return false;
|
||||
}
|
||||
@@ -705,6 +706,7 @@ export class CellModel extends Disposable implements ICellModel {
|
||||
} else {
|
||||
message = getErrorMessage(error);
|
||||
}
|
||||
this.notebookModel.sendNotebookTelemetryActionEvent(TelemetryKeys.NbTelemetryAction.CellExecutionFailed, { kernel: kernel, reason: error.message === 'Canceled' ? 'Canceled' : 'Other' });
|
||||
this.sendNotification(notificationService, Severity.Error, message);
|
||||
// TODO track error state for the cell
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user