effect-time-tracing-logging
Installation
SKILL.md
Time, Tracing & Logging
When to use
- You need timeouts, deadlines, or sleeps
- You want spans for latency analysis or logs for debugging
Time
import { Clock, Duration } from "effect"
const now = yield* Clock.currentTimeMillis
yield* Effect.sleep(Duration.seconds(1))
Timeout
const guarded = yield* Effect.timeout(task, Duration.seconds(2))