MCPcopy
hub / github.com/inkeep/open-knowledge / httpDurationHist

Function httpDurationHist

packages/server/src/api-extension.ts:547–553  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

545
546let _httpDurationHist: ReturnType<ReturnType<typeof getMeter>['createHistogram']> | null = null;
547function httpDurationHist(): ReturnType<ReturnType<typeof getMeter>['createHistogram']> {
548 _httpDurationHist ||= getMeter().createHistogram('http.server.request.duration', {
549 description: 'HTTP server request duration in seconds',
550 unit: 's',
551 });
552 return _httpDurationHist;
553}
554
555let _hintEmittedCounter: ReturnType<ReturnType<typeof getMeter>['createCounter']> | null = null;
556function hintEmittedCounter(): ReturnType<ReturnType<typeof getMeter>['createCounter']> {

Callers 1

onRequestFunction · 0.85

Calls 1

getMeterFunction · 0.90

Tested by

no test coverage detected