mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 02:36:57 -04:00
7 lines
272 B
TypeScript
7 lines
272 B
TypeScript
import { Context, Effect, Scope, Tracer } from "effect"
|
|
|
|
export const withoutParentSpan = <A, E>(effect: Effect.Effect<A, E, Scope.Scope>) =>
|
|
effect.pipe(
|
|
Effect.updateContext((context: Context.Context<Scope.Scope>) => Context.omit(Tracer.ParentSpan)(context)),
|
|
)
|