The resolved diagnostics mode for the request.
The hook or diagnostic name the failure is attributed to.
Which diagnostic fired.
Human-readable description of the failure.
OptionalonConsumer callback observing hook failures, when configured.
OptionalrawThe raw thrown value when the diagnostic reports a throwing hook, so
the observer can inspect the original error. Attached as the cause
of the Error handed to onHookError. A diagnostic carrying a
rawError always reaches a configured observer. Diagnostics modes
control only unsolicited fallback output, not the consumer's observer.
OptionalrequestThe correlation ID of the affected request, when in scope.
OptionalrethrownWhether the reported failure is rethrown to the caller after the
diagnostic is emitted. When true, the console.warn fallback is
skipped entirely. The caller receives the failure as a rejection,
without a duplicate console warning. A configured observer still
receives the diagnostic in every mode.
Options controlling how reportDiagnostic emits one diagnostic.
See
reportDiagnostic