in code/log-processing/src/handlers/index.js [66:78]
yield makeMetric(billedDuration, 'Milliseconds', 'BilledDuration', dimensions, namespace, timestamp)
yield makeMetric(memorySize, 'Megabytes', 'MemorySize', dimensions, namespace, timestamp)
yield makeMetric(memoryUsed, 'Megabytes', 'MemoryUsed', dimensions, namespace, timestamp)
}
} catch (e) {
log.error('failed to parse Lambda usage metrics, skipped...', { event, timestamp })
return
}
}
function* tryParseCostMetric(event, dimensions, timestamp) {
try {
if (event.startsWith('REPORT RequestId:')) {