in app/metrics/CloudWatch.scala [120:135]
def put(
namespace: String,
metricName: String,
maybeValue: Option[Int]
): Unit = {
maybeValue.fold {
logger.warn(
s"Not updating CloudWatch - no value available for '$metricName'"
)
} { value =>
putWithRequest(putRequest(namespace, metricName, value))
logger.debug(
s"Updated CloudWatch metric '$metricName' with value '$value'"
)
}
}