npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@seda-protocol/telemetry

v2.2.1

Published

Effect-based OpenTelemetry integration. Wraps any `Effect` program with OTLP trace export and optional metrics (Prometheus scrape or OTLP push), including Effect fiber metrics, Node.js runtime metrics, and host metrics.

Downloads

776

Readme

@seda-protocol/telemetry

Effect-based OpenTelemetry integration. Wraps any Effect program with OTLP trace export and optional metrics (Prometheus scrape or OTLP push), including Effect fiber metrics, Node.js runtime metrics, and host metrics.

Usage

import { ProvideTelemetry } from "@seda-protocol/telemetry";

program.pipe(
  ProvideTelemetry("my-service", "1.0.0", {
    resourceAttributes: { environment: "production" },
  }),
);

Options

| Option | Description | Default | |---|---|---| | resourceAttributes | Attributes added to the OpenTelemetry resource. | {} | | registerGlobalTracer | Register the trace provider globally for third-party OTEL libraries. | true | | shutdownTimeout | Timeout when shutting down telemetry on exit. | 3000 ms |

Configuration

Telemetry is disabled when OTLP_ENDPOINT is unset and no metrics export mode is active.

OTLP collector base URL

OTLP_ENDPOINT should be the collector base URL (for example http://localhost:4318). Traces are sent to <base> + OTLP_TRACES_PATH_SUFFIX and OTLP metrics to <base> + OTLP_METRICS_PATH_SUFFIX (defaults /v1/traces and /v1/metrics).

If the endpoint ends with /v1/traces (as was common in prior versions), it is normalized to the base URL and a warning is logged.

Tracing

| Variable | Description | Default | |---|---|---| | OTLP_ENDPOINT | Collector base URL for OTLP export. Disabled when unset or empty. | (disabled) | | OTLP_TRACES_PATH_SUFFIX | Path appended to the base URL for trace export. Set to empty to use the base URL as-is. | /v1/traces | | OTLP_SAMPLING_RATIO | Fraction of traces to sample (0–1). | 0.1 |

Metrics export modes

Choose how metrics are exported with METRICS_EXPORTER:

| Mode | METRICS_EXPORTER | Required variables | |---|---|---| | Prometheus scrape (default when PROMETHEUS_PORT is set) | prometheus or unset | PROMETHEUS_PORT | | OTLP push | otlp | OTLP_ENDPOINT (base URL) |

OTLP push exports OpenTelemetry metrics (not Prometheus text format). A collector can forward them to Prometheus or other backends.

| Variable | Description | Default | |---|---|---| | METRICS_EXPORTER | prometheus or otlp. When unset and PROMETHEUS_PORT is set, defaults to Prometheus scrape. | (unset) | | OTLP_METRICS_PATH_SUFFIX | Path appended to the base URL for OTLP metrics export. Set to empty to use the base URL as-is. | /v1/metrics | | PROMETHEUS_PORT | Port for the /metrics scrape endpoint on http://localhost:<port>/metrics. | (disabled) | | OTLP_METRICS_EXPORT_INTERVAL_MS | Push interval for OTLP metrics. | 10000 | | NODE_MONITORING_PRECISION_MS | Node.js runtime metric collection interval in milliseconds. For Prometheus scrape, should be lower than the scrape interval. | 10 | | HOST_METRICS_GROUPS | Comma-separated host metric groups to collect. Supported values: system.cpu, system.memory, system.network, process.cpu, process.memory. When unset, all groups are collected. | (all) |

METRICS_EXPORTER=otlp cannot be combined with PROMETHEUS_PORT.