Package: @effect/opentelemetry
Module: Tracer
Set the effect’s parent span from the given opentelemetry SpanContext.
This is handy when you set up OpenTelemetry outside of Effect and want to attach to a parent span.
Signature
declare const withSpanContext: { (spanContext: Otel.SpanContext): <A, E, R>(effect: Effect<A, E, R>) => Effect<A, E, Exclude<R, ParentSpan>>; <A, E, R>(effect: Effect<A, E, R>, spanContext: Otel.SpanContext): Effect<A, E, Exclude<R, ParentSpan>>; }
Since v1.0.0