node-dogstatsd is an unmaintained Node.js client specifically designed for Datadog's extended StatsD server, differentiating itself from generic StatsD clients by supporting Datadog-specific features like histograms and tags. The package's current stable version is 0.0.7, indicating a very old codebase. It was initially an extension of Steve Ivy's `node-statsd`, adding Datadog's proprietary features. Given its version number and engine requirements (Node.js >=0.1.97), it is largely incompatible with modern Node.js environments and ecosystems. There is no active release cadence, and the project appears to be abandoned, making it unsuitable for new development. Its core utility lies in providing an API to send metrics, timings, and custom events with tags and histograms to a Datadog agent.
npm install node-dogstatsdVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the `node-dogstatsd` client and send various metric types including increments, timings, histograms, and tagged metrics to a Datadog agent, along with basic socket error handling.
Do not use this package for new projects. Consider actively maintained alternatives like `@datadog/dogstatsd` or `dd-trace` for modern Node.js applications.
Ensure you are using a Datadog agent that supports the extended StatsD protocol when utilizing histograms and tags. For generic StatsD, use a standard StatsD client.
This package should be considered a legacy dependency. Migrate to a modern and actively maintained Datadog client library as soon as possible.
Implement robust socket error handling using `c.socket.on('error', function(exception){ ... });` and monitor for unexpected application crashes related to metric submission.Correct the import statement to `const StatsD = require('node-dogstatsd').StatsD;`Verify that the Datadog agent is running and accessible at the specified `host` and `port`. Check network connectivity and firewall rules. Implement `c.socket.on('error', ...)` to catch and handle these exceptions gracefully.This warning signifies severe version incompatibility. It is highly recommended to abandon this package and migrate to a modern Datadog client library that supports your current Node.js version.
No dependency data recorded yet.