7.6.4 • Published 4 years ago
datadog-middleware-builder v7.6.4
Datadog middleware builder in Typescript
Provides Datadog Node.js integration with Typescript.
Installation
$ npm i datadog-middleware-builder
Usage
Express.js integration
import { DatadogMiddlewareBuilder, StatsdSingletonFactory } from 'datadog-middleware-builder';
const getStatsdClient = (): any => {
StatsdSingletonFactory.setupFactory(
Config.DATADOG_AGENT_HOST,
Config.DATADOG_AGENT_PORT,
Config.DATADOG_CACHE_DNS,
Config.DATADOG_GLOBAL_TAGS);
return StatsdSingletonFactory.getStatsdClient();
};
...
app.use(DatadogMiddlewareBuilder.build(getStatsdClient(), Config.DATADOG_SERVICE_NAME));
You can check Datadog's documentation to see what are the exposed metrics.
7.6.4
4 years ago
1.0.22
5 years ago
1.0.21
5 years ago
1.0.23
5 years ago
1.0.19
5 years ago
1.0.20
5 years ago
1.0.18
5 years ago
1.0.17
6 years ago
1.0.16
6 years ago
1.0.15
6 years ago
1.0.14
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago