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

@veryfront/ext-observability-opentelemetry

v0.1.1041

Published

Veryfront first-party extension package for ext-observability-opentelemetry

Readme

@veryfront/ext-observability-opentelemetry

Category: Observability | Contracts: TracingExporter, NodeTelemetryProvider | Optional

Provides distributed tracing, OTLP log export, OTLP metrics export, the OpenTelemetry metrics API bridge, and Node telemetry bootstrap for Veryfront via the OpenTelemetry JS SDK. Exports trace spans, log records, and metrics over OTLP/HTTP to any OpenTelemetry-compatible collector.

Installation

Add the extension to your project's veryfront.config.ts:

import extOpenTelemetry from "@veryfront/ext-observability-opentelemetry";

export default defineConfig({
  extensions: [extOpenTelemetry()],
});

Environment variables

The extension reads the standard OpenTelemetry env vars at setup time:

| Variable | Required | Description | | --------------------------------------------------------- | ---------------- | ----------------------------------------------------------------- | | OTEL_EXPORTER_OTLP_ENDPOINT | Yes (for export) | Base collector URL, e.g. http://localhost:4318 | | OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | No | Trace-specific OTLP HTTP URL | | OTEL_EXPORTER_OTLP_METRICS_ENDPOINT | No | Metric-specific OTLP HTTP URL | | OTEL_EXPORTER_OTLP_LOGS_ENDPOINT | No | Log-specific OTLP HTTP URL | | OTEL_EXPORTER_OTLP_HEADERS | No | Comma-separated key=value pairs (commonly used for auth tokens) | | OTEL_EXPORTER_OTLP_TRACES_HEADERS | No | Trace-specific headers merged over global headers | | OTEL_EXPORTER_OTLP_METRICS_HEADERS | No | Metric-specific headers merged over global headers | | OTEL_EXPORTER_OTLP_LOGS_HEADERS | No | Log-specific headers merged over global headers | | OTEL_SERVICE_NAME | No | Service name attached to telemetry | | OTEL_TRACES_ENABLED / OTEL_TRACES_EXPORTER=otlp | No | Enables trace export | | OTEL_METRICS_ENABLED / OTEL_METRICS_EXPORTER=otlp | No | Enables metric export | | OTEL_LOGS_ENABLED / OTEL_LOGS_EXPORTER=otlp | No | Enables log export | | OTEL_METRIC_EXPORT_INTERVAL | No | Metric export interval in milliseconds | | OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=delta | No | Metrics temporality. Dedicated service defaults to delta. |

Configuration is read from process OTEL_* environment variables. In shared Veryfront runtimes these are platform-owned host env vars. The extension does not accept ctx.config.otel exporter endpoint, header, service name, or enable-flag overrides because project config is tenant controlled in shared runtimes.

Factory configuration

extOpenTelemetry();

Exporter configuration is process-level. Dedicated runtimes can use project-specific collector endpoints by running the project in its own process with its own process environment.

Metrics

Set OTEL_METRICS_ENABLED=true to export framework metrics through OTLP HTTP. The extension resolves OTEL_EXPORTER_OTLP_METRICS_ENDPOINT first, then OTEL_EXPORTER_OTLP_ENDPOINT. A base OTLP endpoint receives /v1/metrics.

Dedicated Node agent services create a startup counter named veryfront.agent.telemetry.startups when metrics export is enabled. The dedicated service defaults metric temporality to delta, which matches Datadog's OTLP metrics intake requirement.

Logs

Set OTEL_LOGS_ENABLED=true or OTEL_LOGS_EXPORTER=otlp to export structured Veryfront agent logs through OTLP HTTP. The extension resolves OTEL_EXPORTER_OTLP_LOGS_ENDPOINT first, then OTEL_EXPORTER_OTLP_ENDPOINT. A base OTLP endpoint receives /v1/logs.

Dedicated Node agent services bridge Veryfront's structured logger into OpenTelemetry logs after telemetry initialization. Log records include the active trace_id and span_id when available, so Datadog can correlate logs with traces.

In shared Veryfront runtimes, these variables are platform-owned host env vars. Project env overlays must not control the shared runtime metrics exporter. Use a dedicated runtime for project-owned collector endpoints or credentials.

Provided contracts

TracingExporter: Veryfront's core shim calls getProvider() to wire the SDK's TracerProvider into framework-emitted spans. Spans are batched and exported by the SDK's BatchSpanProcessor; export(spans) on the contract is intentionally a no-op because the SDK owns the export pipeline.

start(config) constructs the provider + OTLP HTTP exporter; shutdown() flushes and shuts down the provider.

NodeTelemetryProvider: the Node agent service calls initialize(options) when telemetry is enabled. The provider starts NodeSDK, configures sampling, attaches HTTP/Express/fs auto-instrumentation, and registers shutdown handling.

Capabilities

  • net *: OTLP exporter reaches the configured collector.
  • env: reads the OTEL_* variables listed above.