diff --git a/packages/astro/src/index.server.ts b/packages/astro/src/index.server.ts index d5cfed7fae7d..28623724db19 100644 --- a/packages/astro/src/index.server.ts +++ b/packages/astro/src/index.server.ts @@ -101,6 +101,7 @@ export { postgresIntegration, postgresJsIntegration, prismaIntegration, + processSessionIntegration, childProcessIntegration, createSentryWinstonTransport, redisIntegration, diff --git a/packages/aws-serverless/src/index.ts b/packages/aws-serverless/src/index.ts index b9ab9b013925..fd0a0cb83095 100644 --- a/packages/aws-serverless/src/index.ts +++ b/packages/aws-serverless/src/index.ts @@ -112,6 +112,7 @@ export { pinoIntegration, postgresIntegration, postgresJsIntegration, + processSessionIntegration, prismaIntegration, childProcessIntegration, createSentryWinstonTransport, diff --git a/packages/bun/src/index.ts b/packages/bun/src/index.ts index 835105527b1e..9de1e55dacb6 100644 --- a/packages/bun/src/index.ts +++ b/packages/bun/src/index.ts @@ -136,6 +136,7 @@ export { postgresIntegration, postgresJsIntegration, prismaIntegration, + processSessionIntegration, hapiIntegration, setupHapiErrorHandler, honoIntegration, diff --git a/packages/bun/src/sdk.ts b/packages/bun/src/sdk.ts index bf0e6f58ee90..7b79fa9383d6 100644 --- a/packages/bun/src/sdk.ts +++ b/packages/bun/src/sdk.ts @@ -20,6 +20,7 @@ import { nodeContextIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, + processSessionIntegration, } from '@sentry/node'; import { bunServerIntegration } from './integrations/bunserver'; import { makeFetchTransport } from './transports'; @@ -47,6 +48,7 @@ export function getDefaultIntegrations(_options: Options): Integration[] { contextLinesIntegration(), nodeContextIntegration(), modulesIntegration(), + processSessionIntegration(), // Bun Specific bunServerIntegration(), ...(hasSpansEnabled(_options) ? getAutoPerformanceIntegrations() : []), diff --git a/packages/bun/test/sdk.test.ts b/packages/bun/test/sdk.test.ts index fa2abd64e17f..0f414bc7495e 100644 --- a/packages/bun/test/sdk.test.ts +++ b/packages/bun/test/sdk.test.ts @@ -37,10 +37,10 @@ describe('Bun SDK', () => { await new Promise(resolve => setTimeout(resolve, 1000)); - expect(envelopes.length).toBe(1); + const errorEnvelope = envelopes.find(envelope => envelope?.[1][0]?.[0]?.type === 'event'); + expect(errorEnvelope).toBeDefined(); - const envelope = envelopes[0]; - const event = envelope?.[1][0][1] as Event; + const event = errorEnvelope?.[1][0][1] as Event; expect(event.sdk?.name).toBe('sentry.javascript.bun'); diff --git a/packages/google-cloud-serverless/src/index.ts b/packages/google-cloud-serverless/src/index.ts index 72fd0fa3a12d..4fa5c727be59 100644 --- a/packages/google-cloud-serverless/src/index.ts +++ b/packages/google-cloud-serverless/src/index.ts @@ -113,6 +113,7 @@ export { postgresIntegration, postgresJsIntegration, prismaIntegration, + processSessionIntegration, hapiIntegration, setupHapiErrorHandler, honoIntegration, diff --git a/packages/node-core/src/index.ts b/packages/node-core/src/index.ts index 46734aa509e6..c028e8b5e22c 100644 --- a/packages/node-core/src/index.ts +++ b/packages/node-core/src/index.ts @@ -26,6 +26,7 @@ export { anrIntegration, disableAnrDetectionForCallback } from './integrations/a export { spotlightIntegration } from './integrations/spotlight'; export { systemErrorIntegration } from './integrations/systemError'; export { childProcessIntegration } from './integrations/childProcess'; +export { processSessionIntegration } from './integrations/processSession'; export { createSentryWinstonTransport } from './integrations/winston'; export { pinoIntegration } from './integrations/pino'; diff --git a/packages/node/src/index.ts b/packages/node/src/index.ts index bb655b87fc42..4c5500a072cc 100644 --- a/packages/node/src/index.ts +++ b/packages/node/src/index.ts @@ -180,6 +180,7 @@ export { disableAnrDetectionForCallback, spotlightIntegration, childProcessIntegration, + processSessionIntegration, pinoIntegration, createSentryWinstonTransport, SentryContextManager,