Skip to content

Commit 4293015

Browse files
dependabot[bot]andreiborzaclaude
authored
feat(deps): Bump @types/aws-lambda from 8.10.150 to 8.10.161 (#21105)
Bumps [@types/aws-lambda](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/aws-lambda) from 8.10.150 to 8.10.161. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/aws-lambda">compare view</a></li> </ul> </details> <br /> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrei Borza <andrei.borza@sentry.io> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 99988a8 commit 4293015

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎packages/aws-serverless/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"@sentry/core": "10.56.0",
7474
"@sentry/node": "10.56.0",
7575
"@sentry/node-core": "10.56.0",
76-
"@types/aws-lambda": "^8.10.62"
76+
"@types/aws-lambda": "^8.10.161"
7777
},
7878
"devDependencies": {
7979
"@types/node": "^18.19.1",

‎packages/aws-serverless/src/utils.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function markEventUnhandled(scope: Scope, type: string): Scope {
4040
* back to the `event`.
4141
*
4242
* When instrumenting the Lambda function with Sentry, the sentry trace data
43-
* is placed on `context.clientContext.Custom`. Users are free to modify context
43+
* is placed on `context.clientContext.custom`. Users are free to modify context
4444
* tho and provide this data via `event` or `context`.
4545
*/
4646
export function getAwsTraceData(event: HandlerEvent, context?: HandlerContext): TraceData {
@@ -51,8 +51,8 @@ export function getAwsTraceData(event: HandlerEvent, context?: HandlerContext):
5151
baggage: headers.baggage,
5252
};
5353

54-
if (context?.clientContext?.Custom) {
55-
const customContext: Record<string, unknown> = context.clientContext.Custom;
54+
if (context?.clientContext?.custom) {
55+
const customContext: Record<string, unknown> = context.clientContext.custom;
5656
const sentryTrace = isString(customContext['sentry-trace']) ? customContext['sentry-trace'] : undefined;
5757

5858
if (sentryTrace) {

‎packages/aws-serverless/test/utils.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ vi.mock('@opentelemetry/api', async () => {
1414

1515
const mockContext = {
1616
clientContext: {
17-
Custom: {
17+
custom: {
1818
'sentry-trace': '12345678901234567890123456789012-1234567890123456-1',
1919
baggage: 'sentry-environment=production',
2020
},
@@ -54,7 +54,7 @@ describe('getTraceData', () => {
5454
test('gets sentry trace data from the event if the context sentry trace is undefined', () => {
5555
const traceData = getAwsTraceData(mockEvent, {
5656
// @ts-expect-error, a partial context object is fine here
57-
clientContext: { Custom: { 'sentry-trace': undefined, baggage: '' } },
57+
clientContext: { custom: { 'sentry-trace': undefined, baggage: '' } },
5858
});
5959

6060
expect(traceData['sentry-trace']).toEqual('12345678901234567890123456789012-1234567890123456-2');

‎yarn.lock‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8900,10 +8900,10 @@
89008900
resolved "https://registry.yarnpkg.com/@types/aria-query/-/aria-query-5.0.4.tgz#1a31c3d378850d2778dabb6374d036dcba4ba708"
89018901
integrity sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==
89028902

8903-
"@types/aws-lambda@^8.10.62":
8904-
version "8.10.150"
8905-
resolved "https://registry.yarnpkg.com/@types/aws-lambda/-/aws-lambda-8.10.150.tgz#4998b238750ec389a326a7cdb625808834036bd3"
8906-
integrity sha512-AX+AbjH/rH5ezX1fbK8onC/a+HyQHo7QGmvoxAE42n22OsciAxvZoZNEr22tbXs8WfP1nIsBjKDpgPm3HjOZbA==
8903+
"@types/aws-lambda@^8.10.161":
8904+
version "8.10.161"
8905+
resolved "https://registry.yarnpkg.com/@types/aws-lambda/-/aws-lambda-8.10.161.tgz#36d95723ec46d3d555bf0684f83cf4d4369a28ad"
8906+
integrity sha512-rUYdp+MQwSFocxIOcSsYSF3YYYC/uUpMbCY/mbO21vGqfrEYvNSoPyKYDj6RhXXpPfS0KstW9RwG3qXh9sL7FQ==
89078907

89088908
"@types/babel__core@^7.20.1", "@types/babel__core@^7.20.4":
89098909
version "7.20.5"

0 commit comments

Comments
 (0)