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/internal/LambdaMetricsAspect.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ public Object around(ProceedingJoinPoint pjp,
Copy file name to clipboardExpand all lines: powertools-metrics/src/test/java/software/amazon/lambda/powertools/metrics/internal/LambdaMetricsAspectTest.java
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ public void metricsWithoutColdStart() {
80
80
81
81
assertThat(logAsJson)
82
82
.containsEntry("Metric1", 1.0)
83
-
.containsEntry("service", "booking")
83
+
.containsEntry("Service", "booking")
84
84
.containsKey("_aws");
85
85
});
86
86
}
@@ -103,15 +103,15 @@ public void metricsWithColdStart() {
103
103
assertThat(logAsJson)
104
104
.doesNotContainKey("Metric1")
105
105
.containsEntry("ColdStart", 1.0)
106
-
.containsEntry("service", "booking")
106
+
.containsEntry("Service", "booking")
107
107
.containsKey("_aws");
108
108
109
109
logAsJson = readAsJson(s[1]);
110
110
111
111
assertThat(logAsJson)
112
112
.doesNotContainKey("ColdStart")
113
113
.containsEntry("Metric1", 1.0)
114
-
.containsEntry("service", "booking")
114
+
.containsEntry("Service", "booking")
115
115
.containsKey("_aws");
116
116
});
117
117
}
@@ -134,23 +134,23 @@ public void noColdStartMetricsWhenColdStartDone() {
134
134
assertThat(logAsJson)
135
135
.doesNotContainKey("Metric1")
136
136
.containsEntry("ColdStart", 1.0)
137
-
.containsEntry("service", "booking")
137
+
.containsEntry("Service", "booking")
138
138
.containsKey("_aws");
139
139
140
140
logAsJson = readAsJson(s[1]);
141
141
142
142
assertThat(logAsJson)
143
143
.doesNotContainKey("ColdStart")
144
144
.containsEntry("Metric1", 1.0)
145
-
.containsEntry("service", "booking")
145
+
.containsEntry("Service", "booking")
146
146
.containsKey("_aws");
147
147
148
148
logAsJson = readAsJson(s[2]);
149
149
150
150
assertThat(logAsJson)
151
151
.doesNotContainKey("ColdStart")
152
152
.containsEntry("Metric1", 1.0)
153
-
.containsEntry("service", "booking")
153
+
.containsEntry("Service", "booking")
154
154
.containsKey("_aws");
155
155
});
156
156
}
@@ -171,7 +171,7 @@ public void metricsWithStreamHandler() throws IOException {
171
171
172
172
assertThat(logAsJson)
173
173
.containsEntry("Metric1", 1.0)
174
-
.containsEntry("service", "booking")
174
+
.containsEntry("Service", "booking")
175
175
.containsKey("_aws");
176
176
});
177
177
}
@@ -202,7 +202,7 @@ public void noExceptionWhenNoMetricsEmitted() {
0 commit comments