fix(cli): isolate server request traces (#37395)
This commit is contained in:
parent
309860558d
commit
331533deff
5 changed files with 65 additions and 6 deletions
6
packages/server/src/request-tracing.ts
Normal file
6
packages/server/src/request-tracing.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
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)),
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue