Hyperlinkv0.8.0-beta.28

References

References.CurrentStackFrameconsteffect/References.ts:377
Context.Reference<StackFrame | undefined>

Context reference for the current captured stack-frame chain for the running fiber.

When to use

Use when writing low-level tracing or diagnostic integrations that need direct access to the stack-frame chain carried by the current fiber.

Details

Effect and Layer tracing use this reference to attach stack-frame information to failures and interruption causes. It is normally managed by tracing APIs rather than provided directly by application code.

referencesStackFrame
export const CurrentStackFrame: Context.Reference<StackFrame | undefined> = references.CurrentStackFrame