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) • 731 B
TypeScript
import { ConsumerMethodPath, ServerError, ServerErrorsItem } from './types.js';
import './logging.js';
import 'winston';
import './requestLogger.js';
import 'node:buffer';
import 'node:http';
import './tempGzipFile.js';
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 };