Skip to content

feat(node): Add awsLambdaWebIntegration for Lambda Web Functions - #25355

Merged
msonnb merged 13 commits into
developfrom
ms/lambda-web-functions
Oct 30, 2026
Merged

msonnb merged 13 commits into
developfrom
ms/lambda-web-functions

Conversation

@msonnb

@msonnb msonnb commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

This adds a new awsLambdaWebIntegration to the Node SDK for instrumenting Lambda Web Functions. Web Functions run standard Node HTTP servers like Express or Hono, without Lambda-specific handlers or adapters.

Enriches event contexts and segment spans with AWS metadata, request IDs, endpoint names, and cold-start information.

Closes #25317
conventions PR for new attributes: getsentry/sentry-conventions#715

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: a800abe (PR test merge using develop at b0560b7)

Against: b0560b7 (develop) · base run #64377

✅ Baseline matches: this diff contains only this PR's changes.

Path Size % Change Change
@sentry/browser 30.39 kB - -
@sentry/browser - with treeshaking flags 28.53 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.42 kB - -
@sentry/browser (incl. Tracing) 52.7 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.71 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.68 kB - -
@sentry/browser (incl. Tracing, Replay) 93.01 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 81.6 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 97.75 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 110.74 kB - -
@sentry/browser (incl. Feedback) 47.97 kB - -
@sentry/browser (incl. sendFeedback) 35.49 kB - -
@sentry/browser (incl. FeedbackAsync) 40.6 kB - -
@sentry/browser (incl. Metrics) 31.42 kB - -
@sentry/browser (incl. Logs) 31.72 kB - -
@sentry/browser (incl. Metrics & Logs) 32.44 kB - -
@sentry/react 32.27 kB - -
@sentry/react (incl. Tracing) 55.07 kB - -
@sentry/vue 38.66 kB - -
@sentry/vue (incl. Tracing) 55.72 kB - -
@sentry/svelte 30.42 kB - -
@sentry/remix (Remix 3 client bundle) 57.79 kB - -
CDN Bundle 32.18 kB - -
CDN Bundle (incl. Tracing) 53.23 kB - -
CDN Bundle (incl. Logs, Metrics) 34.45 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 55.17 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 75.86 kB - -
CDN Bundle (incl. Tracing, Replay) 91.44 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 93.38 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 97.56 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.55 kB - -
CDN Bundle - uncompressed 94.62 kB - -
CDN Bundle (incl. Tracing) - uncompressed 157.58 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 101.09 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 163.31 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 232.65 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 279.27 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 284.99 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 292.97 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 298.69 kB - -
@sentry/nextjs (client) 57.87 kB - -
@sentry/sveltekit (client) 53.22 kB - -
@sentry/core/server 44.24 kB - -
@sentry/core/browser 13.93 kB - -
@sentry/node 155.35 kB +0.3% +461 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 82.08 kB - -
@sentry/node - without tracing 96.69 kB +0.51% +487 B 🔺
@sentry/node - without channel injection 135.74 kB +0.33% +433 B 🔺
@sentry/aws-serverless 104.87 kB +0.47% +481 B 🔺
@sentry/cloudflare (withSentry) - minified 197.89 kB - -
@sentry/cloudflare (withSentry) 491.86 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 218.31 kB - -

View base workflow run

@msonnb

msonnb commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@msonnb
msonnb marked this pull request as ready for review October 14, 2026 11:50
@msonnb
msonnb requested review from a team as code owners October 14, 2026 11:50
@msonnb
msonnb requested review from andreiborza, chargome, isaacs, mydea and s1gr1d and removed request for a team October 14, 2026 11:50
Comment on lines +29 to +30
'faas.max_memory': lambdaContext.memory_size,
'aws.lambda.initialization_type': lambdaContext.initialization_type,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we already have those attributes in conventions?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Def wanna make these not hard-coded once that lands and probably, wait on this until then. If we need to land this first for some reason, then we should open a tracking issue to make sure it's not forgotten.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revisiting this, has this been released yet/can we use this yet?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merged, but not yet released. I'll see if we can do a conventions release soon

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done in 071523f 👍

@isaacs isaacs self-assigned this Oct 16, 2026

@isaacs isaacs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main blocker is waiting for the conventions to land, obviously. This is a good approach overall.

Comment on lines +16 to +21
const cloudContext: SpanAttributes = {
[CLOUD_PROVIDER]: 'aws',
[CLOUD_PLATFORM]: 'aws_lambda',
[CLOUD_REGION]: process.env.AWS_REGION,
[CLOUD_ACCOUNT_ID]: process.env.AWS_ACCOUNT_ID,
};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cloud_resource here overlaps nodeContextIntegration, and the result depends on integration order, which could be brittle.

nodeContextIntegration already detects AWS through AWS_REGION (packages/node/src/integrations/context.ts line 531) and sets cloud.platform to process.env.AWS_EXECUTION_ENV (for example AWS_Lambda_nodejs24.x). This PR sets cloud.platform to aws_lambda. Both integrations use "existing value wins" merging ({ ...defaults, ...event.contexts.cloud_resource } in processEvent, and safeSetSpanJSONAttributes in processSegmentSpan). So the integration that runs first wins, for events and for spans.

Today awsLambdaWebIntegration() sits just before nodeContextIntegration() in packages/node/src/sdk/index.ts line 70, so aws_lambda wins. The integration test proves this, because it sets AWS_EXECUTION_ENV. But nothing documents the dependency. If a user builds the list with integrations: defaults => [...] or defaultIntegrations: false and puts this integration after nodeContextIntegration, cloud.platform silently becomes AWS_Lambda_nodejs24.x-lite. A later reorder of the defaults would do the same, and only the integration test would catch it.

This PR also has two places that decide "what cloud am I in" for the same process.

Suggestion: move the Web Function cloud detection into getCloudResourceContext() in packages/node/src/integrations/context.ts (when AWS_LAMBDA_HTTP_ENDPOINT is set, return cloud.platform: 'aws_lambda' plus cloud.account.id). Then awsLambdaWebIntegration only handles the aws.lambda context and the per-request data, and the order no longer matters. Or, I guess, we could add a short comment at the default-list entry that says it must come before nodeContextIntegration, and why.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, i did some more digging and came to the conclusion that imo we actually don't need to handle web function web function specially here for two reasons:

  1. cloud.platform should just be aws_lambda for web functions and regular lambda functions instead of the full runtime. This is both the example value in conventions and how we set it in the aws-serverless SDK. Since AWS_REGION being present doesn't necessarily mean that the code's being executed in Lambda, i added a check whether AWS_EXECUTION_ENV starts with AWS_Lambda and set cloud.platform: 'aws_lambda' if so, otherwise fall back to the the full env var value (maybe we should handle other AWS execution envs (ECS?) in a follow-up).
  2. AWS_ACCOUNT_ID isn't actually set by default on Lambda (web function or not), that was an oversight from my end. In the aws-serverless SDK we extract it from the function's ARN, which we we don't have available here.

Comment on lines +29 to +30
'faas.max_memory': lambdaContext.memory_size,
'aws.lambda.initialization_type': lambdaContext.initialization_type,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Def wanna make these not hard-coded once that lands and probably, wait on this until then. If we need to land this first for some reason, then we should open a tracking issue to make sure it's not forgotten.

Comment on lines +39 to +41
if (getClient() !== client) {
return;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This guard doesn't actually do anything.

client.on('httpServerRequest', ...) registers the callback on this client only. The only emitter (packages/node/src/integrations/http/httpServerIntegration.ts line 127) calls emit on getClient(). So the callback only runs when getClient() === client. httpServerSpansIntegration subscribes to the same hook without a guard. Coverage confirms that line 40 is never hit.

Suggested change
if (getClient() !== client) {
return;
}

Comment on lines +47 to +62
const scope = getIsolationScope();
const requestContext: { cold_start: boolean; aws_request_id?: string; endpoint_name?: string } = {
...scope.getScopeData().contexts['aws.lambda'],
cold_start: coldStart,
};
if (typeof requestId === 'string') {
requestContext.aws_request_id = requestId;
} else {
delete requestContext.aws_request_id;
}
if (typeof endpointName === 'string') {
requestContext.endpoint_name = endpointName;
} else {
delete requestContext.endpoint_name;
}
scope.setContext('aws.lambda', requestContext);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Context values of undefined are dropped when the event is normalized, and the processSegmentSpan code already checks typeof ... === 'string'. So I think we can do this with a bit less code:

Suggested change
const scope = getIsolationScope();
const requestContext: { cold_start: boolean; aws_request_id?: string; endpoint_name?: string } = {
...scope.getScopeData().contexts['aws.lambda'],
cold_start: coldStart,
};
if (typeof requestId === 'string') {
requestContext.aws_request_id = requestId;
} else {
delete requestContext.aws_request_id;
}
if (typeof endpointName === 'string') {
requestContext.endpoint_name = endpointName;
} else {
delete requestContext.endpoint_name;
}
scope.setContext('aws.lambda', requestContext);
const scope = getIsolationScope();
scope.setContext('aws.lambda', {
...scope.getScopeData().contexts['aws.lambda'],
cold_start: coldStart,
aws_request_id: typeof requestId === 'string' ? requestId : undefined,
endpoint_name: typeof endpointName === 'string' ? endpointName : undefined,
});

Comment thread packages/bun/src/index.ts Outdated
modulesIntegration,
contextLinesIntegration,
nodeContextIntegration,
awsLambdaWebIntegration,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that in packages/elysia/src/index.ts line 77: Elysia re-exports nodeContextIntegration from @sentry/bun but not awsLambdaWebIntegration.

It's being added to @sentry/bun (so the consistentExports check passes), but @sentry/elysia, which re-exports a list from @sentry/bun, does not get it. consistentExports.ts doesn't check Elysia, so CI won't catch this. Of course, they're node-only, so it kind of doesn't make sense anyway.

Suggestion: either add awsLambdaWebIntegration to the Elysia export list for consistency, or (maybe more sensible? since they're node-only) add it to Bun's ignoreExports in dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts/consistentExports.ts and remove it from here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did the more sensible option and removed the export from bun (and added it to ignoreExports)

@github-actions

Copy link
Copy Markdown
Contributor

👋 @mydea, @chargome, @andreiborza — Please review this PR when you get a chance!

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

👋 @mydea, @chargome, @andreiborza — Please review this PR when you get a chance!

@isaacs isaacs assigned msonnb and unassigned isaacs Oct 22, 2026
@msonnb
msonnb force-pushed the ms/lambda-web-functions branch from c5e823d to bf3b43e Compare October 27, 2026 14:08

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit bf3b43e. Configure here.

'cloud.platform': process.env.AWS_EXECUTION_ENV,
[CLOUD_PROVIDER]: 'aws',
[CLOUD_REGION]: process.env.AWS_REGION,
[CLOUD_PLATFORM]: executionEnv?.startsWith('AWS_Lambda') ? 'aws_lambda' : executionEnv,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silent cloud.platform value change

Medium Severity

nodeContextIntegration now writes cloud.platform as aws_lambda whenever AWS_EXECUTION_ENV starts with AWS_Lambda, instead of the previous raw value such as AWS_Lambda_nodejs24.x. This applies to every Node Lambda app, not only Web Functions, so existing queries and alerts keyed on the old value can stop matching, and the diff has no migration note. Flagged because the review rules call out silent payload changes without a migration callout.

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit bf3b43e. Configure here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like a reasonable comment to look into I'd say!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, that's fair. I laid out here why I think just aws_lambda is the correct value here in all cases, not just for web functions. Do you think we can get away by labeling this as a fix (to align with conventions/otel)? Otherwise we can do it for web functions only now and fix it for other Node apps in v12.

@msonnb msonnb Oct 29, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

briefly discussed with @Lms24 offline and we agreed that it's okay to fix this here. OTel conventions explicitly say that

cloud.platform has the following list of well-known values [list includes aws_lambda]. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

Some optional checks were not successful. They do not block the merge. 2 not successful, 44 successful. See the run.

Check Status
❌ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Failing after 2m Details
❌ CI: Optional E2E Tests / E2E node-anthropic-send-to-sentry (latest) Test (optional) Failing after 3m Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E astro-7 Test (optional) Successful in 54s Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 16s Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions Test (optional) Successful in 16s Details
✅ CI: Optional E2E Tests / E2E node-mastra Test (optional) Successful in 41s Details
✅ CI: Optional E2E Tests / E2E node-eve (latest) Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) Successful in 21s Details
✅ CI: Optional E2E Tests / E2E node-anthropic-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-14 (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E astro-7-static Test (optional) Successful in 45s Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-eve Test (optional) Successful in 38s Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (latest) Test (optional) Successful in 38s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) Successful in 28s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (deno) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-flue Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-openai-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Successful in 44s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) Successful in 20s Details
✅ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 24s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Successful in 16s Details
✅ CI: Optional E2E Tests / E2E nextjs-orpc Test (optional) Successful in 54s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 39s Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 (tracer provider) Test (optional) Successful in 22s Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry-static Test (optional) Successful in 57s Details
✅ CI: Optional E2E Tests / E2E node-openai-send-to-sentry (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions (latest) Test (optional) Successful in 16s Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react (latest) Test (optional) Successful in 58s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Successful in 27s Details
✅ CI: Optional E2E Tests / E2E node-pi-durable Test (optional) Successful in 23s Details
✅ CI: Optional E2E Tests / E2E supabase-nextjs Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) Successful in 31s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 20s Details
✅ CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) Successful in 51s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) Successful in 22s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 19s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) Successful in 21s Details

return {
name: 'AwsLambdaWeb',
setup(client) {
if (!enabled) return;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: this seems fine, but we could also just short-circuit this above, and do e.g.:

if (!enabled) {
  return { name: AWS_LAMBDA_WEB_INTEGRATION_NAME };
}

return {
  // ... remaining stuff here
}

@msonnb
msonnb force-pushed the ms/lambda-web-functions branch from bf3b43e to 071523f Compare October 28, 2026 16:05
@msonnb
msonnb requested a review from a team as a code owner October 28, 2026 16:05
@msonnb
msonnb requested review from Lms24 and logaretm and removed request for a team October 28, 2026 16:05
@github-actions

Copy link
Copy Markdown
Contributor

One or more gzipped bundles increased by more than 500 bytes. If this increase is intentional, add the Accept Bundlesize Increase label to this PR to rerun and accept the check.

let requestHandled = false;

const _awsLambdaWebIntegration = (() => {
if (!process.env.AWS_LAMBDA_HTTP_ENDPOINT) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add a comment here about the logic here. which is, if I understand correctly, that we cannot hook into this any better, so this has to be handled via client.on('httpServerRequest'), which would run for each server. so in order to avoid the overhead of having this run everywhere, we opt out here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes exactly, it's just a regular HTTP server with the request metadata living in request headers. added a comment to explain.

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition! The integration looks solid and makes good use of scope and client hooks. Previous review comments are addressed and I only had some nits left 😅

import { expect, vi } from 'vitest';
import { createEsmAndCjsTests } from '../../../utils/runner';

createEsmAndCjsTests(__dirname, 'scenario.mjs', 'instrument.mjs', (createRunner, test) => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: I rarely critique style, so sorry in advance 😅 I think this test could benefit from a few line breaks to make it a bit easier to understand what belongs directly together.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's very fair, i added a few line breaks 😄

}),
]);
await running.completed();
for (const { request, collected } of spans) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: should we assert on the number of segment spans / traces? I believe it should be 2, correct?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes should be 2, added the assertion

@mydea mydea left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit about maybe adding a comment, other than this looks good!

@msonnb
msonnb force-pushed the ms/lambda-web-functions branch from de36fe9 to c0111af Compare October 30, 2026 11:29
@msonnb
msonnb merged commit 0041bc6 into develop Oct 30, 2026
296 of 298 checks passed
@msonnb
msonnb deleted the ms/lambda-web-functions branch October 30, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for AWS Lambda Web Functions

5 participants