MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / dumpMetrics

Function dumpMetrics

scripts/proxy-utils.mjs:411–419  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

409 }
410
411 function dumpMetrics() {
412 console.log(
413 `[${label}] active_http=${metrics.activeHttpRequests} ` +
414 `active_ws=${metrics.activeWebSockets} ` +
415 `total_http=${metrics.totalHttpRequests} ` +
416 `total_ws=${metrics.totalWebSockets} ` +
417 `total_errors=${metrics.totalErrors}`,
418 );
419 }
420
421 function installDiagnostics(signal = "SIGUSR1") {
422 process.on(signal, dumpMetrics);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected