fix(syncing-server): skip sending empty metrics

This commit is contained in:
Karol Sójko 2024-01-04 13:04:03 +01:00
parent 1493b7c478
commit 2c732ff713
No known key found for this signature in database
GPG key ID: C2F813669419D05F

View file

@ -34,6 +34,10 @@ const sendStatistics = async (
timestamp + Time.MicrosecondsInAMinute,
)
if (statistics.sampleCount === 0) {
continue
}
await cloudwatchClient.send(
new PutMetricDataCommand({
Namespace: 'SyncingServer',