Created
April 27, 2017 15:02
-
-
Save bdeitte/fd37cafec2d18ed3826180f324efc744 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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