()
| 1176 | }); |
| 1177 | |
| 1178 | const resolveParentSpan = (): Tracer.AnySpan | undefined => { |
| 1179 | const ps = config.parentSpan; |
| 1180 | return typeof ps === "function" ? ps() : ps; |
| 1181 | }; |
| 1182 | const anchor = <A, EffE>(effect: Effect.Effect<A, EffE>): Effect.Effect<A, EffE> => { |
| 1183 | const parent = resolveParentSpan(); |
| 1184 | return parent ? Effect.withParentSpan(effect, parent) : effect; |