MCPcopy Create free account
hub / github.com/Effect-TS/effect / batchSpan

Function batchSpan

packages/effect/src/graphql/GraphQLResolver.ts:703–706  ·  view source on GitHub ↗
(context: Context.Context<never>)

Source from the content-addressed store, hash-verified

701// A span opened around the batch, such as `RequestResolver.withSpan`'s, rather
702// than the one the batch fiber inherited from a caller.
703const batchSpan = (context: Context.Context<never>) => {
704 const span = Context.getOrUndefined(context, Tracer.ParentSpan)
705 return span === Context.get(context, QueuedSpan) ? undefined : span
706}
707
708/**
709 * Calls the method with deduplicated keys. Each target completes all entries

Callers 1

makeResolverFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected