Skip to content

Instantly share code, notes, and snippets.

@bdeitte
Created April 27, 2017 15:02
Show Gist options
  • Save bdeitte/fd37cafec2d18ed3826180f324efc744 to your computer and use it in GitHub Desktop.
Save bdeitte/fd37cafec2d18ed3826180f324efc744 to your computer and use it in GitHub Desktop.
var metrics = require('datadog-metrics');
metrics.increment("integration.failure", 1, ["type:RetireSmart", "statusCode:500", "env:production"])
metrics.flush(function() {
console.log('Success!');
}, function(err) {
console.log('Error: ' + err);
});
setTimeout(function() {
console.log('All set!');
}, 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment