MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / resolveParentSpan

Function resolveParentSpan

packages/hosts/mcp/src/tool-server.ts:741–744  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 1

anchorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected