You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***L17-18**: We use AWS X-Ray SDK to add `User` annotation on `hello_name` subsegment. This will allow us to filter traces using the `User` value.
706
705
***L26-27**: We repeat what we did in L17-18 except we use the value `unknown` since we don't have that information.
707
706
***L35**: We use `global` to modify our global variable defined in the outer scope.
708
-
***37-42**: We add `ColdStart` annotation and flip the value of `cold_start` variable, so that subsequent requests annotates the value `false` when the sandbox is reused.
709
-
***L45**: We include the final response under `response` key as part of the `handler` subsegment.
707
+
***37-41**: We add `ColdStart` annotation and set `cold_start` variable to `false`, so that subsequent requests annotates the value `false` when the sandbox is reused.
708
+
***L44**: We include the final response under `response` key as part of the `handler` subsegment.
710
709
711
710
???+ info
712
711
If you want to understand how the Lambda execution environment (sandbox) works and why cold starts can occur, see this [blog series on Lambda performance](https://aws.amazon.com/blogs/compute/operating-lambda-performance-optimization-part-1/){target="_blank"}.
0 commit comments