Skip to content

test(metrics): verify cold starts per invocation - #6020

Merged
dreamorosi merged 2 commits into
mainfrom
fix/metrics-e2e-cold-start
Nov 24, 2026
Merged

dreamorosi merged 2 commits into
mainfrom
fix/metrics-e2e-cold-start

Conversation

@svozza

@svozza svozza commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Summary

The decorator e2e test failed when CloudWatch reported two cold-start samples even though the function logs showed a single emission. The test now verifies each invocation against Lambda’s own initialization report.

Changes

  • Expect one ColdStart value of 1 when the Lambda REPORT includes Init Duration, and zero emissions on a warm invocation.
  • Keep the CloudWatch dimension check. Both decorator e2e tests passed on Node.js 24 arm64.

Issue number: closes #6018


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@dreamorosi
dreamorosi enabled auto-merge (squash) November 24, 2026 14:08
@dreamorosi
dreamorosi merged commit 5320a7b into main Nov 24, 2026
59 checks passed
@dreamorosi
dreamorosi deleted the fix/metrics-e2e-cold-start branch November 24, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M PR between 30-99 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintenance: Make the Metrics decorator cold-start e2e assertion reliable

2 participants