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.
Type Parameters
Section titled “Type Parameters”A
E
R
Parameters
Section titled “Parameters”effect
Section titled “effect”Effect<A, E, R>
string
options?
Section titled “options?”TelemetrySpanOptions = {}
Returns
Section titled “Returns”Effect<A, E, R>