Options to customize the behavior of the logMetrics() decorator or Middy.js middleware.
logMetrics()
Optional
Whether to capture a ColdStart metric.
ColdStart
false Copy
false
captureColdStartMetric()
Default dimensions to add to all metrics.
{} Copy
{}
setDefaultDimensions()
Whether to throw an error if no metrics are emitted.
publishStoredMetrics()
Options to customize the behavior of the
logMetrics()
decorator or Middy.js middleware.