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 44
55- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66
7+ ## 8.2.1
8+
9+ - fix(aws-serverless): Fix build of lambda layer (#12083 )
10+ - fix(nestjs): Broaden nest.js type (#12076 )
11+
712## 8.2.0
813
914- 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 [
1515 sourcemap : false ,
1616 } ,
1717 } ,
18+ preserveModules : false ,
1819 } ) ,
1920 // 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
2021 // 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' ;
32
43const lambdaTaskRoot = process . env . LAMBDA_TASK_ROOT ;
54if ( lambdaTaskRoot ) {
@@ -8,12 +7,12 @@ if (lambdaTaskRoot) {
87 throw Error ( `LAMBDA_TASK_ROOT is non-empty(${ lambdaTaskRoot } ) but _HANDLER is not set` ) ;
98 }
109
11- init ( {
10+ Sentry . init ( {
1211 // We want to load the performance integrations here, if the tracesSampleRate is set for the layer in env vars
1312 // Sentry node's `getDefaultIntegrations` will load them if tracing is enabled,
1413 // which is the case if `tracesSampleRate` is set.
1514 // We can safely add all the node default integrations
16- integrations : getNodeDefaultIntegrations (
15+ integrations : Sentry . getDefaultIntegrations (
1716 process . env . SENTRY_TRACES_SAMPLE_RATE
1817 ? {
1918 tracesSampleRate : parseFloat ( process . env . SENTRY_TRACES_SAMPLE_RATE ) ,
@@ -22,7 +21,7 @@ if (lambdaTaskRoot) {
2221 ) ,
2322 } ) ;
2423
25- tryPatchHandler ( lambdaTaskRoot , handlerString ) ;
24+ Sentry . tryPatchHandler ( lambdaTaskRoot , handlerString ) ;
2625} else {
2726 throw Error ( 'LAMBDA_TASK_ROOT environment variable is not set' ) ;
2827}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ interface NestJsErrorFilter {
2828interface MinimalNestJsApp {
2929 useGlobalFilters : ( arg0 : NestJsErrorFilter ) => void ;
3030 useGlobalInterceptors : ( interceptor : {
31- intercept : ( context : MinimalNestJsExecutionContext , next : { handle : ( ) => void } ) => void ;
31+ intercept : ( context : MinimalNestJsExecutionContext , next : { handle : ( ) => any } ) => any ;
3232 } ) => void ;
3333}
3434
You can’t perform that action at this time.
0 commit comments