nestjs-hot-shots
Version:
Hot-shots Module for Nest.js Framework
16 lines (15 loc) • 500 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TimingCollector = void 0;
const base_collector_1 = require("./base.collector");
class TimingCollector extends base_collector_1.BaseCollector {
/**
* Record value of timing by the input. Inputs can be negative.
* @param value
* @param tags
*/
record(value, tags) {
this.statsd.timing(this.name, value, this.getMergedTags(tags));
}
}
exports.TimingCollector = TimingCollector;