effect-patterns-observability

Implement structured logging, metrics, and tracing for Effect-TS applications.

785|26|Updated Jun 22, 2025
One-click install
npx skills add https://github.com/PaulJPhilp/EffectPatterns --skill effect-patterns-observability
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-patterns-observability
Source: https://github.com/PaulJPhilp/EffectPatterns/tree/main/config/.claude-plugin/plugins/effect-patterns/skills/effect-patterns-observability
Command: npx skills add https://github.com/PaulJPhilp/EffectPatterns --skill effect-patterns-observability

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers make Effect-TS applications observable by providing structured logging, metrics, and distributed tracing patterns, enabling you to monitor, debug, and optimize complex, asynchronous workflows.

Core Features & Use Cases

  • Logging patterns: Use Effect.log and related helpers to produce structured, contextual logs that travel across fibers and async boundaries.
  • Metrics instrumentation: Capture counters, gauges, and histograms with the Metric module to quantify events, performance, and system health.
  • Tracing and spans: Create and annotate tracing spans around key operations with Effect.withSpan, enabling end-to-end visibility across services.
  • Use Case: Instrument a microservice to log incoming requests, measure latency, and emit traces that help pinpoint bottlenecks.

Quick Start

Configure a minimal observability setup for an Effect-TS project by enabling basic logs with Effect.log, instrumenting a function with Effect.fn where appropriate, and wrapping a sample operation with Effect.withSpan to produce a trace.

Frequently Asked Questions about effect-patterns-observability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add distributed tracing to an Effect-TS application?

You add distributed tracing to an Effect-TS application by wrapping key operations with Effect.withSpan to create and annotate tracing spans, enabling end-to-end visibility across services.

What is the best way to capture metrics in Effect-TS?

To capture metrics in Effect-TS, use the Metric module to instrument counters, gauges, and histograms, which quantify events and measure system health and performance.

Does structured logging in Effect-TS work across asynchronous boundaries?

Structured logging in Effect-TS works across asynchronous boundaries by using Effect.log and related helpers to produce contextual logs that travel seamlessly across fibers.

Can I use OpenTelemetry with Effect-TS for observability?

You can use OpenTelemetry with Effect-TS by implementing tracing patterns with Effect.withSpan, enabling rich traces and telemetry for monitoring complex, asynchronous workflows.

How do I monitor latency and bottlenecks in an Effect-TS microservice?

Monitor latency and bottlenecks in an Effect-TS microservice by logging incoming requests, capturing latency metrics with the Metric module, and emitting traces to pinpoint performance issues.