mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-29 12:13:31 +00:00
6 lines
272 B
TypeScript
6 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)),
|
|
)
|