()
| 1154 | }); |
| 1155 | |
| 1156 | const resolveParentSpan = (): Tracer.AnySpan | undefined => { |
| 1157 | const ps = config.parentSpan; |
| 1158 | return typeof ps === "function" ? ps() : ps; |
| 1159 | }; |
| 1160 | const anchor = <A, EffE>(effect: Effect.Effect<A, EffE>): Effect.Effect<A, EffE> => { |
| 1161 | const parent = resolveParentSpan(); |
| 1162 | return parent ? Effect.withParentSpan(effect, parent) : effect; |