mirror of
https://github.com/floci-io/floci.git
synced 2026-12-04 10:38:00 -05:00
* 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.