@seda-protocol/telemetry
v1.0.0
Published
Effect-based OpenTelemetry tracing with OTLP export. Wraps any `Effect` program with automatic trace collection and configurable sampling.
Downloads
42
Readme
@seda-protocol/telemetry
Effect-based OpenTelemetry tracing with OTLP export. Wraps any Effect program with automatic trace collection and configurable sampling.
Usage
import { ProvideTelemetry } from "@seda-protocol/telemetry";
program.pipe(
ProvideTelemetry("my-service", "1.0.0", { environment: "production" }),
);Configuration
| Variable | Description | Default |
|---|---|---|
| OTLP_ENDPOINT | OTLP HTTP endpoint for trace export. Telemetry is disabled when unset or empty. | (disabled) |
| OTLP_SAMPLING_RATIO | Fraction of traces to sample (0–1). | 0.1 |
