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

Function parentSpan

packages/effect/src/Layer.ts:2590–2591  ·  view source on GitHub ↗
(span: Tracer.AnySpan)

Source from the content-addressed store, hash-verified

2588 * @since 2.0.0
2589 */
2590export const parentSpan = (span: Tracer.AnySpan): Layer<Tracer.ParentSpan> =>
2591 succeedContext(Tracer.ParentSpan.context(span))
2592
2593/**
2594 * Wraps a `Layer` with a new tracing span, making all operations in the layer

Callers 1

Layer.tsFile · 0.85

Calls 2

succeedContextFunction · 0.85
contextMethod · 0.80

Tested by

no test coverage detected