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
AWS charges and reports the time of a function as including the coldstart initialization time. We do not detect the time spent during initialization and thus do not report this within the duration. This causes duration inaccuracies for coldstarts.
We could add logic that adjusts the duration reported when we're sending a report which is also a coldstart. In this case, we would set the recorded startTime according to the process start time, not when the user's function was invoked.
The text was updated successfully, but these errors were encountered:
There is a nice side effect of the current implementation though... visibility into how much of the time was spent initializing the coldstart vs the code execution. We could maybe capture both of these?
Perhaps if it's a coldstart the duration should be reported as simply the process.uptime? (this is expressed as seconds with milliseconds represented via decimal and would need to be converted)
AWS charges and reports the time of a function as including the coldstart initialization time. We do not detect the time spent during initialization and thus do not report this within the duration. This causes duration inaccuracies for coldstarts.
We could add logic that adjusts the duration reported when we're sending a report which is also a coldstart. In this case, we would set the recorded startTime according to the process start time, not when the user's function was invoked.
The text was updated successfully, but these errors were encountered: