Skip to main content

Function: recordPreloadGuardFailure()

recordPreloadGuardFailure(report: { channel: string; guard: string; metadata?: UnknownRecord; payloadPreview?: string; reason?: string; timestamp: number; }): void

Defined in: electron/services/ipc/diagnosticsMetrics.ts:142

Records a preload guard failure reported by the preload diagnostics bridge.

Parameters

report

Guard diagnostics payload emitted by preload.

channel

string

IPC channel associated with the rejected payload.

guard

string

Name of the guard function that rejected the payload.

metadata?

UnknownRecord

Additional metadata describing the guard context.

payloadPreview?

string

Serialized preview of the rejected payload for debugging.

reason?

string

Optional human-readable reason supplied by the guard.

timestamp

number

Timestamp (milliseconds since Unix epoch) when the guard triggered.

Returns

void