UNPKG

apitally

Version:

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

22 lines (19 loc) 735 B
import { ConsumerMethodPath, ServerError, ServerErrorsItem } from './types.cjs'; import './logging.cjs'; import 'winston'; import './requestLogger.cjs'; import 'node:buffer'; import 'node: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 };