()
| 33 | |
| 34 | let _apiErrorCounter: Counter | null = null; |
| 35 | export 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 | |
| 43 | interface ErrorResponseOptions { |
| 44 | handler?: string; |
no test coverage detected