How to use the datadog-metrics.flush function in datadog-metrics

To help you get started, we’ve selected a few datadog-metrics examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Nordstrom / serverless-lighthouse-template / handler.js View on Github external
.then(() => {
    // Flush metrics to Datadog
    // ref: https://github.com/dbader/node-datadog-metrics#flushing
    console.log('flushing metrics')
    return metrics.flush()
  })
  .then(() => callback())

datadog-metrics

Buffered metrics reporting via the Datadog HTTP API

MIT
Latest version published 7 months ago

Package Health Score

82 / 100
Full package analysis