Skip to content

withSpan

withSpan<A, E, R>(effect, name, options?): Effect<A, E, R>

Defined in: packages/core/src/telemetry.ts:208

Traces an Effect, records its duration and outcome, and preserves its error channel. This is the Effect-native replacement for the old telemetry handle.

A

E

R

Effect<A, E, R>

string

TelemetrySpanOptions = {}

Effect<A, E, R>