Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/observability / / RedactionViolationCallback
Type Alias: RedactionViolationCallback
ts
type RedactionViolationCallback = (violation) => void;Defined in: packages/observability/src/redaction/types.ts:21
Optional sink invoked every time the validator drops a value or masks a pattern. Useful for emitting custom metrics, audit entries, or alert hooks. The callback receives only sanitized data — secret values are never forwarded.
Parameters
| Parameter | Type |
|---|---|
violation | RedactionViolation |
Returns
void