()
| 1621 | }); |
| 1622 | |
| 1623 | const resolveParentSpan = (): Tracer.AnySpan | undefined => { |
| 1624 | const ps = config.parentSpan; |
| 1625 | return typeof ps === "function" ? ps() : ps; |
| 1626 | }; |
| 1627 | const anchor = <A, EffE>(effect: Effect.Effect<A, EffE>): Effect.Effect<A, EffE> => { |
| 1628 | const parent = resolveParentSpan(); |
| 1629 | return parent ? Effect.withParentSpan(effect, parent) : effect; |