UNPKG

nestjs-hot-shots

Version:
16 lines (15 loc) 518 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HistogramCollector = void 0; const base_collector_1 = require("./base.collector"); class HistogramCollector extends base_collector_1.BaseCollector { /** * Record value of histogram by the input. Inputs can be negative. * @param value * @param tags */ record(value, tags) { this.statsd.histogram(this.name, value, this.getMergedTags(tags)); } } exports.HistogramCollector = HistogramCollector;