UNPKG

apitally

Version:

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

24 lines (21 loc) 805 B
import { ConsumerMethodPath, ServerError, ServerErrorsItem } from './types.cjs'; import './logging.cjs'; import 'winston'; import './requestLogger.cjs'; import 'node:buffer'; import 'node:http'; import './spanCollector.cjs'; import '@opentelemetry/sdk-trace-base'; 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 };