open-index/open-npm huggingface dataset:
npm package: @seda-protocol/telemetry
Description: Effect-based OpenTelemetry tracing with OTLP export. Wraps any `Effect` program with automatic trace collection and configurable sampling.
Latest version: 1.0.0

# @seda-protocol/telemetry

Effect-based OpenTelemetry tracing with OTLP export. Wraps any `Effect` program with automatic trace collection and configurable sampling.

## Usage

```ts
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` |