Revert "Upstream 20240517"
This commit is contained in:
parent
9c006fd893
commit
f6dec44e95
2347 changed files with 26470 additions and 87494 deletions
|
@ -1,6 +1,6 @@
|
|||
// @ts-check
|
||||
|
||||
import metrics from 'prom-client';
|
||||
const metrics = require('prom-client');
|
||||
|
||||
/**
|
||||
* @typedef StreamingMetrics
|
||||
|
@ -18,7 +18,7 @@ import metrics from 'prom-client';
|
|||
* @param {import('pg').Pool} pgPool
|
||||
* @returns {StreamingMetrics}
|
||||
*/
|
||||
export function setupMetrics(channels, pgPool) {
|
||||
function setupMetrics(channels, pgPool) {
|
||||
// Collect metrics from Node.js
|
||||
metrics.collectDefaultMetrics();
|
||||
|
||||
|
@ -101,3 +101,5 @@ export function setupMetrics(channels, pgPool) {
|
|||
messagesSent,
|
||||
};
|
||||
}
|
||||
|
||||
exports.setupMetrics = setupMetrics;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue