(options: NodeOptions)
| 96 | } |
| 97 | |
| 98 | function getNuxtDefaultIntegrations(options: NodeOptions): Integration[] { |
| 99 | return [ |
| 100 | ...getDefaultNodeIntegrations(options).filter(integration => integration.name !== 'Http'), |
| 101 | // The httpIntegration is added as defaultIntegration, so users can still overwrite it |
| 102 | httpIntegration({ |
| 103 | instrumentation: { |
| 104 | responseHook: () => { |
| 105 | // Makes it possible to end the tracing span before closing the Vercel lambda (https://vercel.com/docs/functions/functions-api-reference#waituntil) |
| 106 | vercelWaitUntil(flushSafelyWithTimeout()); |
| 107 | }, |
| 108 | }, |
| 109 | }), |
| 110 | ]; |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * Flushes pending Sentry events with a 2-second timeout and in a way that cannot create unhandled promise rejections. |
no test coverage detected