Skip to content

Conversation

@phipag
Copy link
Contributor

@phipag phipag commented Dec 11, 2025

Summary

This PR is based on #2317 contributed by @Attyuttam.

They contributed the cold start detection algorithm for suppressing cold start detection on non ON-DEMAND invocations. This PR just gives some finishing touches on supporting it throughout other modules without breaking unit tests.

⭐ Big thanks to @Attyuttam!

Changes

  • Adds cold-start logic by parsing AWS_LAMBDA_INITIALIZATION_TYPE env var
  • Removes unnecessary and redundant declaration of maven surefire version
  • Add env var to unit tests asserting cold starts. For example, cold start metric emissions, tracing annotation etc.

Issue number: #2113


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.

@sonarqubecloud
Copy link

@phipag phipag self-assigned this Dec 11, 2025
@phipag phipag requested review from hjgraca and svozza and removed request for svozza December 11, 2025 09:23
@dreamorosi
Copy link
Contributor

@phipag since the CI is green and the PR approved, should we merge this before it drifts away?

@phipag
Copy link
Contributor Author

phipag commented Dec 15, 2025

Good point. Let's merge this. Thanks for the reminder @dreamorosi .

@phipag phipag merged commit 79e3137 into main Dec 15, 2025
16 checks passed
@phipag phipag deleted the pr-2317-review branch December 15, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Support correct cold start detection for non-on-demand invocation types

4 participants