Package: effect
Module: Effect
Enables or disables tracer timing for the given Effect.
Example (Enabling or disabling tracing timing)
import { Effect } from "effect"
Effect.succeed(42).pipe(
Effect.withSpan("my-span"),
// the span will not have timing information
Effect.withTracerTiming(false)
)
Signature
declare const withTracerTiming: { (enabled: boolean): <A, E, R>(effect: Effect<A, E, R>) => Effect<A, E, R>; <A, E, R>(effect: Effect<A, E, R>, enabled: boolean): Effect<A, E, R>; }
Since v2.0.0