Files
floci/docs
TATSUNO “Taz” Yasuhiro 6e5b1569fe feat(lambdaweb): publish the Web Function metrics (#5976)
* feat(lambdaweb): publish the Web Function metrics to CloudWatch

AWS counts a request that reached an environment in ExecutedRequests, also one answered with
Runtime.OriginRequestError or Runtime.RequestTimeout. The status classes count the platform pages too,
except the 400, 404 and 505 pages. Each environment has a datapoint at init, also a failed one, then
one each minute and one when it ends.

* fix(lambdaweb): bound the waiting metric writes and store them before shutdown

* fix(lambdaweb): report each answer before it goes out and build datapoints with MetricDatum.of

A test can then wait for the publisher once and read the metrics without polling. RDS and SES build
their datapoints with the same factory.

* fix(lambdaweb): wait for the metric writes even when their queue is full

The wait now takes the last accepted write instead of a slot in the queue.
The writes run one at a time in order, so once it is done all are.
Only PutMetricData stores a zero timestamp as the current time, so the
MetricDatum.of comment says so.
2026-10-19 10:22:15 -04:00
..
2026-03-15 17:43:56 -05:00