7.6.4 • Published 3 years ago

datadog-middleware-builder v7.6.4

Weekly downloads
30
License
MIT
Repository
github
Last release
3 years ago

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

3 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.23

4 years ago

1.0.19

4 years ago

1.0.20

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago