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

@celerity-sdk/telemetry

v0.8.3

Published

Observability layer for the Celerity Node SDK — pino-based logger and OTel-based tracing

Downloads

82

Readme

@celerity-sdk/telemetry

Observability layer for the Celerity Node SDK. Provides pino-based structured logging and OpenTelemetry-based distributed tracing.

Installation

pnpm add @celerity-sdk/telemetry

Key Concepts

TelemetryLayer

A system layer that initialises the logger and tracer, registers them in the DI container, and propagates request-scoped loggers via AsyncLocalStorage.

Self-configures from environment variables:

| Variable | Description | |---|---| | CELERITY_LOG_LEVEL | Log level (debug, info, warn, error) | | CELERITY_LOG_FILE | Optional file path for log output | | CELERITY_OTEL_ENABLED | Enable OpenTelemetry (true/false) | | OTEL_SERVICE_NAME | Service name for OTel resource | | OTEL_EXPORTER_OTLP_ENDPOINT | OTel collector endpoint |

Logging

Pino-based structured logger with multistream output: console (with pino-pretty for local development), optional file, and an OTel Logs bridge.

import { LOGGER_TOKEN } from "@celerity-sdk/telemetry";

@Injectable()
class OrderService {
  constructor(@Inject(LOGGER_TOKEN) private logger: CelerityLogger) {}

  getOrder(id: string) {
    this.logger.info("Fetching order", { orderId: id });
  }
}

Request-Scoped Logging

The ContextAwareLogger proxy automatically includes request context (trace ID, request ID) in log entries. For code outside the DI container, use getRequestLogger().

Tracing

OpenTelemetry SDK integration with automatic instrumentation. Enhanced instrumentations for AWS SDK, ioredis, pg, and mysql2 are loaded dynamically when available as peer dependencies.

import { TRACER_TOKEN } from "@celerity-sdk/telemetry";

@Injectable()
class OrderService {
  constructor(@Inject(TRACER_TOKEN) private tracer: CelerityTracer) {}

  async getOrder(id: string) {
    return this.tracer.startSpan("getOrder", async (span) => {
      span.setAttribute("orderId", id);
      // ...
    });
  }
}

DI Tokens

| Token | Type | Description | |---|---|---| | LOGGER_TOKEN | CelerityLogger | Request-aware structured logger | | TRACER_TOKEN | CelerityTracer | Distributed tracer |

OTel Setup (ESM-only)

For applications that need early OTel SDK initialisation (before any instrumented imports), import the setup entry point:

import "@celerity-sdk/telemetry/setup";

Part of the Celerity Framework

See celerityframework.io for full documentation.