File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed
node/src/integrations/tracing Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
6
6
7
+ ## 8.2.1
8
+
9
+ - fix(aws-serverless): Fix build of lambda layer (#12083 )
10
+ - fix(nestjs): Broaden nest.js type (#12076 )
11
+
7
12
## 8.2.0
8
13
9
14
- feat(redis-cache): Create cache-span with prefixed keys (get/set commands) (#12070 )
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export default [
15
15
sourcemap : false ,
16
16
} ,
17
17
} ,
18
+ preserveModules : false ,
18
19
} ) ,
19
20
// We only need one copy of the SDK, and we pick the minified one because there's a cap on how big a lambda function
20
21
// plus its dependencies can be, and we might as well take up as little of that space as is necessary. We'll rename
Original file line number Diff line number Diff line change 1
- import { getDefaultIntegrations as getNodeDefaultIntegrations } from '@sentry/node' ;
2
- import { init , tryPatchHandler } from './sdk' ;
1
+ import * as Sentry from './index' ;
3
2
4
3
const lambdaTaskRoot = process . env . LAMBDA_TASK_ROOT ;
5
4
if ( lambdaTaskRoot ) {
@@ -8,12 +7,12 @@ if (lambdaTaskRoot) {
8
7
throw Error ( `LAMBDA_TASK_ROOT is non-empty(${ lambdaTaskRoot } ) but _HANDLER is not set` ) ;
9
8
}
10
9
11
- init ( {
10
+ Sentry . init ( {
12
11
// We want to load the performance integrations here, if the tracesSampleRate is set for the layer in env vars
13
12
// Sentry node's `getDefaultIntegrations` will load them if tracing is enabled,
14
13
// which is the case if `tracesSampleRate` is set.
15
14
// We can safely add all the node default integrations
16
- integrations : getNodeDefaultIntegrations (
15
+ integrations : Sentry . getDefaultIntegrations (
17
16
process . env . SENTRY_TRACES_SAMPLE_RATE
18
17
? {
19
18
tracesSampleRate : parseFloat ( process . env . SENTRY_TRACES_SAMPLE_RATE ) ,
@@ -22,7 +21,7 @@ if (lambdaTaskRoot) {
22
21
) ,
23
22
} ) ;
24
23
25
- tryPatchHandler ( lambdaTaskRoot , handlerString ) ;
24
+ Sentry . tryPatchHandler ( lambdaTaskRoot , handlerString ) ;
26
25
} else {
27
26
throw Error ( 'LAMBDA_TASK_ROOT environment variable is not set' ) ;
28
27
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ interface NestJsErrorFilter {
28
28
interface MinimalNestJsApp {
29
29
useGlobalFilters : ( arg0 : NestJsErrorFilter ) => void ;
30
30
useGlobalInterceptors : ( interceptor : {
31
- intercept : ( context : MinimalNestJsExecutionContext , next : { handle : ( ) => void } ) => void ;
31
+ intercept : ( context : MinimalNestJsExecutionContext , next : { handle : ( ) => any } ) => any ;
32
32
} ) => void ;
33
33
}
34
34
You can’t perform that action at this time.
0 commit comments