()
| 739 | }); |
| 740 | |
| 741 | const resolveParentSpan = (): Tracer.AnySpan | undefined => { |
| 742 | const ps = config.parentSpan; |
| 743 | return typeof ps === "function" ? ps() : ps; |
| 744 | }; |
| 745 | const anchor = <A, EffE>(effect: Effect.Effect<A, EffE>): Effect.Effect<A, EffE> => { |
| 746 | const parent = resolveParentSpan(); |
| 747 | return parent ? Effect.withParentSpan(effect, parent) : effect; |