property BaseError.traceIdGetter

Optional callback to provide a trace ID from ambient context (e.g. OpenTelemetry).

Trellis (or other consumers) can set this once at startup so all BaseError instances capture a traceId automatically unless explicitly provided.

Type

(() => string | undefined) | undefined

Usage

import { BaseError } from "result/mod.ts";