TelemetryErrorFields: {
    errorMessage: string;
    errorMessageTruncated?: boolean;
    errorName: string;
    httpStatus?: number;
}

The error dimensions every failure telemetry event carries, so failure rates across different actions are computed on the same fields.

Type declaration

  • errorMessage: string

    Capped at DEFAULT_TELEMETRY_MESSAGE_LENGTH_LIMIT; see errorMessageTruncated. The full message should always go to the log service alongside this.

  • OptionalerrorMessageTruncated?: boolean

    Present and true only when errorMessage was clipped. Reported rather than left implicit so a substring search that misses can be distinguished from one that genuinely found nothing.

  • errorName: string
  • OptionalhttpStatus?: number

    The response status, when the failure is a network error