effect-io-ai

Package: effect
Module: Effect

Effect.withSpanScoped

Wraps the effect with a new span for tracing.

The span is ended when the Scope is finalized.

Signature

declare const withSpanScoped: { (name: string, options?: Tracer.SpanOptions): <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, Exclude<R, Tracer.ParentSpan> | Scope.Scope>; <A, E, R>(self: Effect<A, E, R>, name: string, options?: Tracer.SpanOptions): Effect<A, E, Exclude<R, Tracer.ParentSpan> | Scope.Scope>; }

Source

Since v2.0.0