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

@domusjs/observability

v0.2.1

Published

The Observability Module in DomusJS provides a robust, plug-and-play integration with OpenTelemetry to enable:

Downloads

9

Readme

👀 @domusjs/observability

The Observability Module in DomusJS provides a robust, plug-and-play integration with OpenTelemetry to enable:

  • ✅ Distributed tracing
  • ✅ Application-level metrics
  • ✅ Centralized, traceable logging

It’s designed to give you deep visibility into your system’s behavior across commands, queries, events, jobs, and HTTP requests.

📘 Documentation: @domusjs/observability Docs


✨ Features

  • 🎯 OpenTelemetry Tracer setup and initialization.
  • 🛠️ Manual instrumentation helpers (traceFn, @Traceable() decorator).
  • 🌍 Pluggable exporters (OTLP, Jaeger, Console).
  • 🔍 Logger enrichment with trace and span IDs.
  • 📈 Metrics + Logs (ready to extend, including OTLP log export).
  • 🔩 Custom instrumentations for third-party libraries.

🚀 Getting Started

Install

npm install @domusjs/observability @opentelemetry/exporter-trace-otlp-http

DomusJS provides a flexible observability layer built on top of OpenTelemetry. Depending on what parts of your application you want to instrument (e.g. HTTP server, PostgreSQL, Redis), you will need to install the corresponding OpenTelemetry instrumentation packages.

You can find the full list here: 👉 OpenTelemetry Instrumentation Packages

For example:

npm install @opentelemetry/instrumentation-http @opentelemetry/instrumentation-express

Basic Usage

Setup the Tracer

import { setupObservability, getDefaultConfig } from '@domusjs/observability';
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';

import { HttpInstrumentation } from '@opentelemetry/instrumentation-http';
import { ExpressInstrumentation } from '@opentelemetry/instrumentation-express';

setupObservability({
  config: {
    ...getDefaultConfig('domusjs-app'),
    traceExporter: new OTLPTraceExporter({
      url: 'http://localhost:4318/v1/traces',
    }),
  },
  instrumentations: [new HttpInstrumentation(), new ExpressInstrumentation()],
});

✅ This initializes OpenTelemetry with your desired exporters and instrumentations.


Use the @Traceable Decorator

The @Traceable decorator automatically creates a tracing span for a method, tracking execution time, attributes, and events.

import { Traceable } from '@domusjs/observability';

class UserService {
  @Traceable({ spanName: 'user.create' })
  async createUser(data: any) {
    // Logic here
  }
}

✅ Automatically creates spans when the decorated method is called.xw


🔗 Learn More

For advanced aspects, check out the full documentation:

👉 https://docs.domusjs.com