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

Function spanFields

packages/effect/src/ui/Query.ts:3022–3027  ·  view source on GitHub ↗
(
  parent: queryCore.SpanContext | undefined
)

Source from the content-addressed store, hash-verified

3020// -----------------------------------------------------------------------------
3021
3022const spanFields = (
3023 parent: queryCore.SpanContext | undefined
3024): { readonly traceId?: string; readonly parentSpanId?: string } =>
3025 parent === undefined
3026 ? {}
3027 : { traceId: parent.traceId, parentSpanId: parent.spanId }
3028
3029interface FetchEvent {
3030 readonly query: string

Callers 2

emitFetchFunction · 0.85
eventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected