MCPcopy Index your code
hub / github.com/inkeep/open-knowledge / apiErrorCounter

Function apiErrorCounter

packages/server/src/http/error-response.ts:35–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34let _apiErrorCounter: Counter | null = null;
35export function apiErrorCounter(): Counter {
36 _apiErrorCounter ||= getMeter().createCounter('ok.api.error.count', {
37 description: 'API error responses by problem type and handler',
38 unit: '1',
39 });
40 return _apiErrorCounter;
41}
42
43interface ErrorResponseOptions {
44 handler?: string;

Callers 4

successResponseFunction · 0.90
errorResponseFunction · 0.85
streamingProblemEventFunction · 0.85

Calls 1

getMeterFunction · 0.90

Tested by

no test coverage detected