Skip to content

Commit 328d1be

Browse files
Apply suggestions from code review
Co-authored-by: Leandro Damascena <lcdama@amazon.pt>
1 parent a05f7ec commit 328d1be

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/metrics/src/Metrics.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@ class Metrics extends Utility implements MetricsInterface {
279279
* By default, metrics are buffered and flushed when calling {@link Metrics.publishStoredMetrics | `publishStoredMetrics()`} method,
280280
* or at the end of the handler function when using the {@link Metrics.logMetrics | `logMetrics()`} decorator or the Middy.js middleware.
281281
*
282-
* Metrics are emitted to standard output in the Amazon CloudWatch EMF (Embedded Metric Format) schema. In AWS Lambda, the logs are
283-
* automatically picked up by CloudWatch logs and processed asynchronously.
282+
* Metrics are emitted to standard output in the Amazon CloudWatch EMF (Embedded Metric Format) schema.
284283
*
285284
* You can add a metric by specifying the metric name, unit, and value. For convenience,
286285
* we provide a set of constants for the most common units in the {@link MetricUnits | MetricUnit} dictionary object.
@@ -887,7 +886,7 @@ class Metrics extends Utility implements MetricsInterface {
887886
* Store a metric in the buffer.
888887
*
889888
* If the buffer is full, or the metric reaches the maximum number of values,
890-
* the metrics are published.
889+
* the metrics are flushed to stdout.
891890
*
892891
* @param name - The name of the metric to store
893892
* @param unit - The unit of the metric to store

0 commit comments

Comments
 (0)