OptionalasyncAsyncLocalStorage class to use for nesting across await. Detected
automatically on Node.js, Bun, Deno and where it is a global; pass it
explicitly on runtimes where it is only importable, e.g. Cloudflare
Workers: import { AsyncLocalStorage } from 'node:async_hooks'.
OptionalblockingDetailed mode flags calls whose synchronous part runs at least this long (ms, default 50; 0 disables)
OptionalenabledSet to false to make every tracked function a plain pass-through
OptionalenableAttach nested tracked calls to their caller (default true)
OptionalloggerUse an existing logger instead of creating a new one
OptionalmodeFiltering for info/warn/error/debug (default "dev")
OptionalonCalled with every finished top-level tree (also when silent)
OptionalperformanceCalls slower than this (ms) are marked [SLOW] when no threshold is set (default 100)
OptionalpluginsPlugins/exporters to register
OptionalreporterReplace console output: called with each reported top-level tree
OptionalsampleFraction of calls to track (default 1)
OptionalsilentSuppress console output (stats, hooks and exporters still run)
OptionalstatsCollect per-label statistics (default true)
OptionalthresholdOnly report calls taking at least this many milliseconds (default 0)
OptionaltrackingDetail level (default "balanced")
OptionaltrackRecord heap change per call (default true)
Configuration accepted by the browser createTracePerf()/BrowserLogger