()
| 1627 | }); |
| 1628 | |
| 1629 | const resolveParentSpan = (): Tracer.AnySpan | undefined => { |
| 1630 | const ps = config.parentSpan; |
| 1631 | return typeof ps === "function" ? ps() : ps; |
| 1632 | }; |
| 1633 | const anchor = <A, EffE>(effect: Effect.Effect<A, EffE>): Effect.Effect<A, EffE> => { |
| 1634 | const parent = resolveParentSpan(); |
| 1635 | return parent ? Effect.withParentSpan(effect, parent) : effect; |