Files
floci/docs
TATSUNO “Taz” Yasuhiro 301ac79c6e feat(lambdaweb): write the platform events of Web Function environments (#5936)
* feat(lambdaweb): write the platform events of Web Function environments

Each environment now writes the platform.* events AWS writes, filtered by the revision's systemLogLevel. CPU time and memory come from the container's cgroup. The output of an environment that fails before it listens reaches its stream too. Node runs under Docker's init, so a server without a SIGTERM handler stops at once, as on AWS where it is not PID 1. The server has 9 seconds to listen, as the AWS TimeoutListenError message says.

* fix(lambdaweb): settle the platform events of an environment that ends early

The last reports wait for the requests the exit failed, so they are counted. A periodic summary comes no more after the last report. An exit right after the app listens is handled as an exit. The CPU time counts on a host without memory.peak. The listen failure event is dropped at applicationLogLevel FATAL, as on AWS.
2026-10-18 11:09:24 -04:00
..
2026-03-15 17:43:56 -05:00