UNPKG

apitally

Version:

Simple API monitoring & analytics for REST APIs built with Express, Fastify, Hono, Koa, and NestJS.

22 lines (19 loc) 725 B
import { ConsumerMethodPath, ServerError, ServerErrorsItem } from './types.cjs'; import './logging.cjs'; import 'winston'; import './requestLogger.cjs'; import 'buffer'; import 'http'; import './tempGzipFile.cjs'; declare class ServerErrorCounter { private errorCounts; private errorDetails; private sentryEventIds; constructor(); addServerError(serverError: ConsumerMethodPath & ServerError): void; getAndResetServerErrors(): ServerErrorsItem[]; private getKey; } declare function truncateExceptionMessage(msg: string): string; declare function truncateExceptionStackTrace(stack: string): string; export { ServerErrorCounter as default, truncateExceptionMessage, truncateExceptionStackTrace };