policyTrace
policyTrace(
c,policyName):TraceReporter
Defined in: src/policies/sdk/trace.ts:87
Get a trace reporter for a specific policy.
When tracing is active (_stomaTraceRequested is truthy), returns a
function that stores the detail on the context. When inactive, returns
noopTraceReporter - a no-op with zero overhead.
Parameters
Section titled “Parameters”Context
Hono request context.
policyName
Section titled “policyName”string
Policy name used as the Map key.
Returns
Section titled “Returns”A TraceReporter - always callable.