You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powertools-metrics/src/main/java/software/amazon/lambda/powertools/metrics/Metrics.java
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -20,13 +20,12 @@
20
20
importjava.lang.annotation.Target;
21
21
22
22
/**
23
-
* {@code Metrics} is used to signal that the annotated method should be
24
-
* extended with Metrics functionality.
23
+
* {@code Metrics} is used to signal that the annotated Lambda handler method should be
24
+
* extended with Metrics functionality. Will have no effect when used on a method that is not a Lambda handler.
25
25
*
26
26
* <p>{@code Metrics} allows users to asynchronously create Amazon
27
27
* CloudWatch metrics by using the CloudWatch <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Specification.html">Embedded Metrics Format</a>.
28
-
* {@code Metrics} manages the life-cycle of the MetricsLogger class,
29
-
* to simplify the user experience when used with AWS Lambda.
28
+
* {@code Metrics} manages the life-cycle and configuration of the MetricsLogger to simplify the user experience when used with AWS Lambda.
30
29
*
31
30
* <p>{@code Metrics} should be used with the handleRequest method of a class
Copy file name to clipboardExpand all lines: powertools-metrics/src/main/java/software/amazon/lambda/powertools/metrics/internal/LambdaMetricsAspect.java
0 commit comments