File tree 4 files changed +17
-27
lines changed
dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts 4 files changed +17
-27
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,13 @@ const DEPENDENTS: Dependent[] = [
54
54
'NodeClient' ,
55
55
'hapiErrorPlugin' ,
56
56
'makeNodeTransport' ,
57
+ // TODO: remove these when we switch exports from nodeExperimentalExports to nodeExports
58
+ 'Integrations' ,
59
+ 'addGlobalEventProcessor' ,
60
+ 'getActiveTransaction' ,
61
+ 'getCurrentHub' ,
62
+ 'makeMain' ,
63
+ 'startTransaction' ,
57
64
] ,
58
65
} ,
59
66
{
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ export type { TransactionNamingScheme } from '@sentry/node-experimental';
22
22
export type { BunOptions } from './types' ;
23
23
24
24
export {
25
- // eslint-disable-next-line deprecation/deprecation
26
- addGlobalEventProcessor ,
27
25
addEventProcessor ,
28
26
addBreadcrumb ,
29
27
addIntegration ,
@@ -33,22 +31,14 @@ export {
33
31
close ,
34
32
createTransport ,
35
33
flush ,
36
- // eslint-disable-next-line deprecation/deprecation
37
- getActiveTransaction ,
38
- // eslint-disable-next-line deprecation/deprecation
39
- getCurrentHub ,
40
34
getClient ,
41
35
isInitialized ,
42
36
getCurrentScope ,
43
37
getGlobalScope ,
44
38
getIsolationScope ,
45
39
Hub ,
46
- // eslint-disable-next-line deprecation/deprecation
47
- makeMain ,
48
40
setCurrentClient ,
49
41
Scope ,
50
- // eslint-disable-next-line deprecation/deprecation
51
- startTransaction ,
52
42
SDK_VERSION ,
53
43
setContext ,
54
44
setExtra ,
@@ -119,13 +109,4 @@ export {
119
109
init ,
120
110
} from './sdk' ;
121
111
122
- import { Integrations as NodeIntegrations } from '@sentry/node-experimental' ;
123
- import { BunServer } from './integrations/bunserver' ;
124
112
export { bunServerIntegration } from './integrations/bunserver' ;
125
-
126
- const INTEGRATIONS = {
127
- ...NodeIntegrations ,
128
- BunServer,
129
- } ;
130
-
131
- export { INTEGRATIONS as Integrations } ;
Original file line number Diff line number Diff line change 4
4
Transaction ,
5
5
captureException ,
6
6
continueTrace ,
7
- convertIntegrationFnToClass ,
8
7
defineIntegration ,
9
8
getCurrentScope ,
10
9
setHttpStatus ,
@@ -25,15 +24,20 @@ const _bunServerIntegration = (() => {
25
24
} ;
26
25
} ) satisfies IntegrationFn ;
27
26
28
- export const bunServerIntegration = defineIntegration ( _bunServerIntegration ) ;
29
-
30
27
/**
31
28
* Instruments `Bun.serve` to automatically create transactions and capture errors.
32
29
*
33
- * @deprecated Use `bunServerIntegration()` instead.
30
+ * Enabled by default in the Bun SDK.
31
+ *
32
+ * ```js
33
+ * Sentry.init({
34
+ * integrations: [
35
+ * Sentry.bunServerIntegration(),
36
+ * ],
37
+ * })
38
+ * ```
34
39
*/
35
- // eslint-disable-next-line deprecation/deprecation
36
- export const BunServer = convertIntegrationFnToClass ( INTEGRATION_NAME , bunServerIntegration ) ;
40
+ export const bunServerIntegration = defineIntegration ( _bunServerIntegration ) ;
37
41
38
42
/**
39
43
* Instruments Bun.serve by patching it's options.
Original file line number Diff line number Diff line change @@ -79,8 +79,6 @@ describe('Bun Serve Integration', () => {
79
79
// span.endTimestamp is already set in `finishTransaction` hook
80
80
expect ( transaction . isRecording ( ) ) . toBe ( false ) ;
81
81
82
- // eslint-disable-next-line deprecation/deprecation
83
- expect ( transaction . metadata ?. dynamicSamplingContext ) . toStrictEqual ( { version : '1.0' , environment : 'production' } ) ;
84
82
expect ( getDynamicSamplingContextFromSpan ( transaction ) ) . toStrictEqual ( {
85
83
version : '1.0' ,
86
84
environment : 'production' ,
You can’t perform that action at this time.
0 commit comments