Skip to content

Commit bd46fcf

Browse files
Cleanup error events (#543)
1 parent 9c3a5a3 commit bd46fcf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Telemetry/Telemetry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,6 @@ public enum TelemetryErrorName
423423
GetScaleStatus,
424424
GetUnprocessedChangeCount,
425425
GetUnprocessedChangeCountRollback,
426-
InvalidConfigurationValue,
427426
MissingPrimaryKeys,
428427
NoPrimaryKeys,
429428
ProcessChanges,
@@ -435,6 +434,7 @@ public enum TelemetryErrorName
435434
RenewLeasesLoop,
436435
RenewLeasesRollback,
437436
StartListener,
437+
TriggerFunction,
438438
Upsert,
439439
UpsertRollback,
440440
}

src/TriggerBinding/SqlTableChangeMonitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ private async Task ProcessTableChangesAsync(SqlConnection connection, Cancellati
444444
// In the future might make sense to retry executing the function, but for now we just let
445445
// another worker try.
446446
this._logger.LogError($"Failed to trigger user function for table: '{this._userTable.FullName} due to exception: {result.Exception.GetType()}. Exception message: {result.Exception.Message}");
447-
TelemetryInstance.TrackException(TelemetryErrorName.ProcessChanges, result.Exception, this._telemetryProps, measures);
447+
TelemetryInstance.TrackException(TelemetryErrorName.TriggerFunction, result.Exception, this._telemetryProps, measures);
448448

449449
await this.ClearRowsAsync();
450450
}

0 commit comments

Comments
 (0)