1
- // https://medium.com/unsplash/named-namespace-imports-7345212bbffb
2
- import * as AWSLambda from './awslambda' ;
3
- import * as GCPFunction from './gcpfunction' ;
4
- export { AWSLambda , GCPFunction } ;
1
+ export { awsServicesIntegration } from './awsservices' ;
2
+
3
+ import { init as awsLambdaInit , wrapHandler } from './awslambda' ;
4
+ import { init as gcpFunctionInit } from './gcpfunction' ;
5
+
6
+ const AWSLambda = {
7
+ init : awsLambdaInit ,
8
+ wrapHandler,
9
+ } ;
5
10
6
- // eslint-disable-next-line deprecation/deprecation
7
- export { AWSServices , awsServicesIntegration } from './awsservices' ;
11
+ const GCPFunction = {
12
+ init : gcpFunctionInit ,
13
+ } ;
14
+
15
+ export { AWSLambda , GCPFunction } ;
8
16
9
17
// TODO(v8): We have to explicitly export these because of the namespace exports
10
18
// above. This is because just doing `export * from '@sentry/node'` will not
@@ -15,8 +23,6 @@ export {
15
23
SDK_VERSION ,
16
24
Scope ,
17
25
addBreadcrumb ,
18
- // eslint-disable-next-line deprecation/deprecation
19
- addGlobalEventProcessor ,
20
26
addEventProcessor ,
21
27
addIntegration ,
22
28
autoDiscoverNodePerformanceMonitoringIntegrations ,
@@ -25,61 +31,39 @@ export {
25
31
captureMessage ,
26
32
captureCheckIn ,
27
33
withMonitor ,
28
- // eslint-disable-next-line deprecation/deprecation
29
- configureScope ,
30
34
createTransport ,
31
- // eslint-disable-next-line deprecation/deprecation
32
- getActiveTransaction ,
33
- // eslint-disable-next-line deprecation/deprecation
34
- getCurrentHub ,
35
35
getClient ,
36
36
isInitialized ,
37
37
getCurrentScope ,
38
38
getGlobalScope ,
39
39
getIsolationScope ,
40
40
getHubFromCarrier ,
41
- // eslint-disable-next-line deprecation/deprecation
42
- spanStatusfromHttpCode ,
43
41
getSpanStatusFromHttpCode ,
44
42
setHttpStatus ,
45
- // eslint-disable-next-line deprecation/deprecation
46
- makeMain ,
47
43
setCurrentClient ,
48
44
setContext ,
49
45
setExtra ,
50
46
setExtras ,
51
47
setTag ,
52
48
setTags ,
53
49
setUser ,
54
- // eslint-disable-next-line deprecation/deprecation
55
- startTransaction ,
56
50
withScope ,
57
51
withIsolationScope ,
58
52
NodeClient ,
59
53
makeNodeTransport ,
60
54
close ,
61
- // eslint-disable-next-line deprecation/deprecation
62
- defaultIntegrations ,
63
55
getDefaultIntegrations ,
64
56
defaultStackParser ,
65
57
flush ,
66
58
getSentryRelease ,
67
59
init ,
68
- // eslint-disable-next-line deprecation/deprecation
69
- lastEventId ,
70
60
DEFAULT_USER_INCLUDES ,
71
61
addRequestDataToEvent ,
72
62
extractRequestData ,
73
- // eslint-disable-next-line deprecation/deprecation
74
- deepReadDirSync ,
75
63
Handlers ,
76
- // eslint-disable-next-line deprecation/deprecation
77
- Integrations ,
78
64
setMeasurement ,
79
65
getActiveSpan ,
80
66
startSpan ,
81
- // eslint-disable-next-line deprecation/deprecation
82
- startActiveSpan ,
83
67
startInactiveSpan ,
84
68
startSpanManual ,
85
69
continueTrace ,
@@ -88,12 +72,8 @@ export {
88
72
linkedErrorsIntegration ,
89
73
inboundFiltersIntegration ,
90
74
functionToStringIntegration ,
91
- // eslint-disable-next-line deprecation/deprecation
92
- getModuleFromFilename ,
93
75
createGetModuleFromFilename ,
94
76
metrics ,
95
- // eslint-disable-next-line deprecation/deprecation
96
- extractTraceparentData ,
97
77
runWithAsyncContext ,
98
78
consoleIntegration ,
99
79
onUncaughtExceptionIntegration ,
0 commit comments