diff --git a/dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts/consistentExports.ts b/dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts/consistentExports.ts index f77b14445d57..cf8233680c11 100644 --- a/dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts/consistentExports.ts +++ b/dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts/consistentExports.ts @@ -11,7 +11,7 @@ const NODE_EXPORTS_IGNORE = [ 'default', // Probably generated by transpilation, no need to require it '__esModule', - // this function was deprecates almost immediately after it was introduced + // this function was deprecated almost immediately after it was introduced // due to a name change (startSpan). No need to re-export it IMHO. 'startActiveSpan', // this was never meant for external use (and documented as such) @@ -60,18 +60,7 @@ const DEPENDENTS: Dependent[] = [ { package: '@sentry/serverless', exports: Object.keys(SentryServerless), - ignoreExports: [ - // Deprecated, no need to add this now to serverless - 'extractTraceparentData', - 'getModuleFromFilename', - 'enableAnrDetection', - // TODO: Should these be exported from serverless? - 'cron', - 'runWithAsyncContext', - 'hapiErrorPlugin', - ], - // TODO: Fix exports in serverless - skip: true, + ignoreExports: ['cron', 'hapiErrorPlugin', 'enableAnrDetection'], }, { package: '@sentry/sveltekit', diff --git a/packages/serverless/src/index.ts b/packages/serverless/src/index.ts index 8db1e4ba5be0..abc135a6b750 100644 --- a/packages/serverless/src/index.ts +++ b/packages/serverless/src/index.ts @@ -39,6 +39,9 @@ export { getIsolationScope, getHubFromCarrier, // eslint-disable-next-line deprecation/deprecation + spanStatusfromHttpCode, + getSpanStatusFromHttpCode, + // eslint-disable-next-line deprecation/deprecation makeMain, setCurrentClient, setContext, @@ -79,4 +82,15 @@ export { startSpanManual, continueTrace, parameterize, + requestDataIntegration, + linkedErrorsIntegration, + inboundFiltersIntegration, + functionToStringIntegration, + // eslint-disable-next-line deprecation/deprecation + getModuleFromFilename, + createGetModuleFromFilename, + metrics, + // eslint-disable-next-line deprecation/deprecation + extractTraceparentData, + runWithAsyncContext, } from '@sentry/node';