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.
export const const CurrentStackFrame: Context.Reference<
StackFrame | undefined
>
const CurrentStackFrame: {
defaultValue: () => Shape;
of: (this: void, self: StackFrame | undefined) => StackFrame | undefined;
context: (self: StackFrame | undefined) => Context.Context<never>;
use: (f: (service: StackFrame | undefined) => Effect<A, E, R>) => Effect<A, E, R>;
useSync: (f: (service: StackFrame | undefined) => A) => Effect<A, never, never>;
Identifier: Identifier;
Service: Shape;
key: string;
stack: string | undefined;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
toString: () => string;
toJSON: () => unknown;
}
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.
CurrentStackFrame: import ContextContext.type Context.Reference = /*unresolved*/ anyReference<StackFrame | undefined> = import referencesreferences.const CurrentStackFrame: Context.Reference<
StackFrame | undefined
>
const CurrentStackFrame: {
defaultValue: () => Shape;
of: (this: void, self: StackFrame | undefined) => StackFrame | undefined;
context: (self: StackFrame | undefined) => Context.Context<never>;
use: (f: (service: StackFrame | undefined) => Effect<A, E, R>) => Effect<A, E, R>;
useSync: (f: (service: StackFrame | undefined) => A) => Effect<A, never, never>;
Identifier: Identifier;
Service: Shape;
key: string;
stack: string | undefined;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
toString: () => string;
toJSON: () => unknown;
}
CurrentStackFrame