Skip to content

Commit 1fea339

Browse files
authored
feat(serverless): Add missing @sentry/node re-exports (#10390)
Adds missing re-exports to the serverless package
1 parent 18c0a4f commit 1fea339

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts/consistentExports.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const NODE_EXPORTS_IGNORE = [
1111
'default',
1212
// Probably generated by transpilation, no need to require it
1313
'__esModule',
14-
// this function was deprecates almost immediately after it was introduced
14+
// this function was deprecated almost immediately after it was introduced
1515
// due to a name change (startSpan). No need to re-export it IMHO.
1616
'startActiveSpan',
1717
// this was never meant for external use (and documented as such)
@@ -60,18 +60,7 @@ const DEPENDENTS: Dependent[] = [
6060
{
6161
package: '@sentry/serverless',
6262
exports: Object.keys(SentryServerless),
63-
ignoreExports: [
64-
// Deprecated, no need to add this now to serverless
65-
'extractTraceparentData',
66-
'getModuleFromFilename',
67-
'enableAnrDetection',
68-
// TODO: Should these be exported from serverless?
69-
'cron',
70-
'runWithAsyncContext',
71-
'hapiErrorPlugin',
72-
],
73-
// TODO: Fix exports in serverless
74-
skip: true,
63+
ignoreExports: ['cron', 'hapiErrorPlugin', 'enableAnrDetection'],
7564
},
7665
{
7766
package: '@sentry/sveltekit',

packages/serverless/src/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ export {
3939
getIsolationScope,
4040
getHubFromCarrier,
4141
// eslint-disable-next-line deprecation/deprecation
42+
spanStatusfromHttpCode,
43+
getSpanStatusFromHttpCode,
44+
// eslint-disable-next-line deprecation/deprecation
4245
makeMain,
4346
setCurrentClient,
4447
setContext,
@@ -79,4 +82,15 @@ export {
7982
startSpanManual,
8083
continueTrace,
8184
parameterize,
85+
requestDataIntegration,
86+
linkedErrorsIntegration,
87+
inboundFiltersIntegration,
88+
functionToStringIntegration,
89+
// eslint-disable-next-line deprecation/deprecation
90+
getModuleFromFilename,
91+
createGetModuleFromFilename,
92+
metrics,
93+
// eslint-disable-next-line deprecation/deprecation
94+
extractTraceparentData,
95+
runWithAsyncContext,
8296
} from '@sentry/node';

0 commit comments

Comments
 (0)