1
- import { applySdkMetadata } from '@sentry/core' ;
2
- import type { NodeOptions } from '@sentry/node-experimental ' ;
3
- import { getClient , init as nodeInit , setTag } from '@sentry/node-experimental ' ;
1
+ import { applySdkMetadata , isInitialized } from '@sentry/core' ;
2
+ import type { NodeOptions } from '@sentry/node' ;
3
+ import { init as nodeInit , setTag } from '@sentry/node' ;
4
4
import { logger } from '@sentry/utils' ;
5
5
6
6
import { DEBUG_BUILD } from './utils/debug-build' ;
@@ -10,8 +10,6 @@ import type { RemixOptions } from './utils/remixOptions';
10
10
// We need to explicitly export @sentry /node as they end up under `default` in ESM builds
11
11
// See: https://github.com/getsentry/sentry-javascript/issues/8474
12
12
export {
13
- // eslint-disable-next-line deprecation/deprecation
14
- addGlobalEventProcessor ,
15
13
addEventProcessor ,
16
14
addBreadcrumb ,
17
15
addIntegration ,
@@ -22,8 +20,6 @@ export {
22
20
captureMessage ,
23
21
createTransport ,
24
22
// eslint-disable-next-line deprecation/deprecation
25
- getActiveTransaction ,
26
- // eslint-disable-next-line deprecation/deprecation
27
23
getCurrentHub ,
28
24
getClient ,
29
25
getCurrentScope ,
@@ -46,7 +42,6 @@ export {
46
42
setHttpStatus ,
47
43
withScope ,
48
44
withIsolationScope ,
49
- autoDiscoverNodePerformanceMonitoringIntegrations ,
50
45
makeNodeTransport ,
51
46
getDefaultIntegrations ,
52
47
defaultStackParser ,
@@ -56,7 +51,6 @@ export {
56
51
addRequestDataToEvent ,
57
52
DEFAULT_USER_INCLUDES ,
58
53
extractRequestData ,
59
- Integrations ,
60
54
consoleIntegration ,
61
55
onUncaughtExceptionIntegration ,
62
56
onUnhandledRejectionIntegration ,
@@ -68,7 +62,6 @@ export {
68
62
functionToStringIntegration ,
69
63
inboundFiltersIntegration ,
70
64
linkedErrorsIntegration ,
71
- Handlers ,
72
65
setMeasurement ,
73
66
getActiveSpan ,
74
67
getRootSpan ,
@@ -83,15 +76,30 @@ export {
83
76
parameterize ,
84
77
metrics ,
85
78
createGetModuleFromFilename ,
86
- hapiErrorPlugin ,
87
79
SEMANTIC_ATTRIBUTE_SENTRY_OP ,
88
80
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ,
89
81
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ,
90
82
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE ,
91
- } from '@sentry/node-experimental' ;
83
+ expressIntegration ,
84
+ expressErrorHandler ,
85
+ setupExpressErrorHandler ,
86
+ fastifyIntegration ,
87
+ graphqlIntegration ,
88
+ mongoIntegration ,
89
+ mongooseIntegration ,
90
+ mysqlIntegration ,
91
+ mysql2Integration ,
92
+ nestIntegration ,
93
+ postgresIntegration ,
94
+ prismaIntegration ,
95
+ hapiIntegration ,
96
+ setupHapiErrorHandler ,
97
+ spotlightIntegration ,
98
+ setupFastifyErrorHandler ,
99
+ } from '@sentry/node' ;
92
100
93
101
// Keeping the `*` exports for backwards compatibility and types
94
- export * from '@sentry/node-experimental ' ;
102
+ export * from '@sentry/node' ;
95
103
96
104
export { captureRemixServerException , wrapRemixHandleError } from './utils/instrumentServer' ;
97
105
export { ErrorBoundary , withErrorBoundary } from '@sentry/react' ;
@@ -102,15 +110,11 @@ export { wrapExpressCreateRequestHandler } from './utils/serverAdapters/express'
102
110
103
111
export type { SentryMetaArgs } from './utils/types' ;
104
112
105
- function sdkAlreadyInitialized ( ) : boolean {
106
- return ! ! getClient ( ) ;
107
- }
108
-
109
113
/** Initializes Sentry Remix SDK on Node. */
110
114
export function init ( options : RemixOptions ) : void {
111
115
applySdkMetadata ( options , 'remix' , [ 'remix' , 'node' ] ) ;
112
116
113
- if ( sdkAlreadyInitialized ( ) ) {
117
+ if ( isInitialized ( ) ) {
114
118
DEBUG_BUILD && logger . log ( 'SDK already initialized' ) ;
115
119
116
120
return ;
0 commit comments