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

@ciphercross-private/nestjs-datadog

v1.0.0

Published

NestJS module for Datadog tracing, logging and monitoring

Readme

@ciphercross/nestjs-datadog

NestJS module for Datadog logging, tracing, and monitoring.
Provides structured logging, distributed tracing, health checks, and metrics collection out of the box.

✨ Features

  • 🚀 Structured JSON logging (Winston)
  • 🔍 Distributed tracing (Datadog APM)
  • 📊 Health checks & Kubernetes probes
  • 📈 Metrics collection
  • 🎯 Easy-to-use decorators for tracing & logging
  • 📝 Optional Swagger support for monitoring endpoints

📦 Installation

npm install @ciphercross/nestjs-datadog

🚀 Quick Start

1. Import the Module

import { Module } from "@nestjs/common";
import { DatadogModule } from "@ciphercross/nestjs-datadog";

@Module({
  imports: [DatadogModule.register({ serviceName: "my-app" })],
})
export class AppModule {}

2. Use the Services

import { Injectable } from "@nestjs/common";
import {
  DatadogLoggerService,
  DatadogTracingService,
} from "@ciphercross/nestjs-datadog";

@Injectable()
export class UserService {
  constructor(
    private readonly logger: DatadogLoggerService,
    private readonly tracing: DatadogTracingService
  ) {}

  async createUser(user: any) {
    this.logger.log("User created", "USER_SERVICE");
    return this.tracing.trace("user.create", async () => user);
  }
}

3. (Optional) Monitoring Endpoints

If you need /monitoring/health and /monitoring/metrics, import:

import { DatadogMonitoringController } from "@ciphercross/nestjs-datadog/monitoring";

⚙️ Configuration (env variables)

| Variable | Description | Default | Required? | | ---------------------------- | ------------------------------------------ | ---------------- | --------- | | DD_API_KEY | Datadog API key | — | Yes* | | DD_SERVICE | Service name | nestjs-app | No | | DD_VERSION | Service version | 1.0.0 | No | | DD_ENV | Environment | development | No | | DD_TRACE_ENABLED | Enable APM tracing | false | No | | DD_PROFILING_ENABLED | Enable profiling | false | No | | DD_LOGS_ENABLED | Enable library logging outputs | false | No | | DD_LOG_LEVEL | Library logger level | info | No | | DD_METRICS_ENABLED | Enable metrics (if you wire a collector) | false | No | | DD_SITE | Datadog site realm | datadoghq.com | No | | DD_APP_KEY | Datadog App key (for REST API calls) | — (fallback API) | No | | DD_LOG_INJECTION | Inject trace/span IDs into logs | true | No | | DD_RUNTIME_METRICS_ENABLED | Collect runtime metrics from tracer | true | No | | DD_ENABLE_DISK_MONITORING | Enable disk health checks (monitoring svc) | false | No | | DD_DISK_PATH | Disk path to monitor | / | No | | DD_DISK_THRESHOLD | Disk usage threshold (%) | 90 | No |

📚 Advanced Usage

See docs/advanced.md for:

  • Logging examples
  • Tracing examples
  • Health & metrics
  • Decorators (@Trace, @Log)
  • Interceptors

🐳 Docker

Example Datadog Agent setup in docs/docker.md.