UNPKG

@sentry/node

Version:

Sentry Node SDK using OpenTelemetry for performance instrumentation

11 lines • 603 B
import type { Client } from '@sentry/core'; /** * Keeps Vercel Node.js functions alive until the SDK has sent the telemetry of each request. * * Vercel can suspend a function as soon as the response is sent, so buffered events, spans, logs and metrics * (and the timers that flush them) arrive late or never. When a response * finishes, we register one `waitUntil` that waits for the response to close and the request's root span to * end (2 seconds at most), and then flushes the client. */ export declare function setupVercelKeepAlive(client: Client): void; //# sourceMappingURL=vercel.d.ts.map