v0.10.0
-
Breaking change: we now use Datadog’s official
@datadog/datadog-api-client
package to send metrics to Datadog. This makesdatadog-metrics
usable with Webpack, but removes theagent
option. If you were using this option and the new library does not provide a way to meet your needs, please let us know by filing an issue! (Thanks to @thatguychrisw) -
You can now customize what metrics are generated by a histogram. When logging a histogram metric, the 5th argument is an optional object with information about which aggregations and percentiles to create metrics for:
const metrics = require('datadog-metrics'); metrics.histogram('my.metric.name', 3.8, [], Date.now(), { // Aggregates can include 'max', 'min', 'sum', 'avg', or 'count'. aggregations: ['max', 'min', 'sum', 'avg', 'count'], // Percentiles can include any decimal between 0 and 1. percentiles: [0.75, 0.85, 0.95, 0.99] });
(Thanks to @gquinteros93.)
-
INTERNAL: Clean up continuous integration on TravisCI. (Thanks to @ErikBoesen.)