Skip to content

Commit

Permalink
Merge pull request #12085 from getsentry/prepare-release/8.2.1
Browse files Browse the repository at this point in the history
meta: Update CHANGELOG for 8.2.1
  • Loading branch information
mydea committed May 16, 2024
2 parents 84e924f + aacb33a commit 86f4ea8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott

## 8.2.1

- fix(aws-serverless): Fix build of lambda layer (#12083)
- fix(nestjs): Broaden nest.js type (#12076)

## 8.2.0

- feat(redis-cache): Create cache-span with prefixed keys (get/set commands) (#12070)
Expand Down
1 change: 1 addition & 0 deletions packages/aws-serverless/rollup.aws.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default [
sourcemap: false,
},
},
preserveModules: false,
}),
// 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
// plus its dependencies can be, and we might as well take up as little of that space as is necessary. We'll rename
Expand Down
9 changes: 4 additions & 5 deletions packages/aws-serverless/src/awslambda-auto.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { getDefaultIntegrations as getNodeDefaultIntegrations } from '@sentry/node';
import { init, tryPatchHandler } from './sdk';
import * as Sentry from './index';

const lambdaTaskRoot = process.env.LAMBDA_TASK_ROOT;
if (lambdaTaskRoot) {
Expand All @@ -8,12 +7,12 @@ if (lambdaTaskRoot) {
throw Error(`LAMBDA_TASK_ROOT is non-empty(${lambdaTaskRoot}) but _HANDLER is not set`);
}

init({
Sentry.init({
// We want to load the performance integrations here, if the tracesSampleRate is set for the layer in env vars
// Sentry node's `getDefaultIntegrations` will load them if tracing is enabled,
// which is the case if `tracesSampleRate` is set.
// We can safely add all the node default integrations
integrations: getNodeDefaultIntegrations(
integrations: Sentry.getDefaultIntegrations(
process.env.SENTRY_TRACES_SAMPLE_RATE
? {
tracesSampleRate: parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE),
Expand All @@ -22,7 +21,7 @@ if (lambdaTaskRoot) {
),
});

tryPatchHandler(lambdaTaskRoot, handlerString);
Sentry.tryPatchHandler(lambdaTaskRoot, handlerString);
} else {
throw Error('LAMBDA_TASK_ROOT environment variable is not set');
}
2 changes: 1 addition & 1 deletion packages/node/src/integrations/tracing/nest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface NestJsErrorFilter {
interface MinimalNestJsApp {
useGlobalFilters: (arg0: NestJsErrorFilter) => void;
useGlobalInterceptors: (interceptor: {
intercept: (context: MinimalNestJsExecutionContext, next: { handle: () => void }) => void;
intercept: (context: MinimalNestJsExecutionContext, next: { handle: () => any }) => any;
}) => void;
}

Expand Down

0 comments on commit 86f4ea8

Please sign in to comment.