From 9f39680a22965aed00ac65bec0ebaf98de46227b Mon Sep 17 00:00:00 2001 From: Nicolas Hrubec Date: Fri, 7 Aug 2026 22:35:26 +0200 Subject: [PATCH] feat(aws-serverless): Remove deprecated disableAwsContextPropagation option The `disableAwsContextPropagation` option was already deprecated and had no effect. This removes it from the `AwsLambdaOptions` interface. Since the option was the only member, the interface is dropped entirely and the integration factory no longer takes options. Co-Authored-By: Claude Opus 4.8 (1M context) --- packages/aws-serverless/src/integration/awslambda.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/packages/aws-serverless/src/integration/awslambda.ts b/packages/aws-serverless/src/integration/awslambda.ts index 8c48b3541f4b..94ddb92d00f6 100644 --- a/packages/aws-serverless/src/integration/awslambda.ts +++ b/packages/aws-serverless/src/integration/awslambda.ts @@ -4,15 +4,6 @@ import { createRequire } from 'node:module'; import { DEBUG_BUILD } from '../debug-build'; import { parseHandlerString, resolveHandlerFile } from '../handlerResolution'; -interface AwsLambdaOptions { - // TODO(v11): Remove this option since it's no longer used. - /** - * @deprecated This option no longer does anything and will be removed in a future major version. - * Sentry trace propagation always takes precedence. - */ - disableAwsContextPropagation?: boolean; -} - const SHIM_MODULE_ID = '@sentry/aws-serverless/run-lambda-handler'; function resolveShimFile(): string | undefined { @@ -101,7 +92,7 @@ const AWS_LAMBDA_CONTEXT_FIELDS = [ const AWS_CLOUDWATCH_CONTEXT_FIELDS = ['log_group', 'log_stream', 'url'] as const; -const _awsLambdaIntegration = ((_options: AwsLambdaOptions = {}) => { +const _awsLambdaIntegration = (() => { return { name: 'AwsLambda' as const, setupOnce() {