interface DefineOptions

Per-kind options accepted by define().

Type Parameters

Data

Properties

optional
trace: (data: Data) => TraceAttributes

Allowlist mapper from the typed payload to span/log attributes, consumed by attributes. Deliberately not a redaction filter: only what the mapper returns is ever exposed, so sensitive fields are private by omission, not by scrubbing.

Usage

import { type DefineOptions } from "lib/result/failure.ts";