@@ -89,8 +89,8 @@ public void metricsWithoutColdStart() {
89
89
.containsEntry ("Metric2" , 1.0 )
90
90
.containsEntry ("Dimension1" , "Value1" )
91
91
.containsKey ("_aws" )
92
- .containsEntry ("XrayTraceId " , "1-5759e988-bd862e3fe1be46a994272793" )
93
- .containsEntry ("AwsRequestId " , "123ABC" );
92
+ .containsEntry ("xray_trace_id " , "1-5759e988-bd862e3fe1be46a994272793" )
93
+ .containsEntry ("function_request_id " , "123ABC" );
94
94
95
95
Map <String , Object > aws = (Map <String , Object >) logAsJson .get ("_aws" );
96
96
@@ -103,7 +103,7 @@ public void metricsWithoutColdStart() {
103
103
assertThat (logAsJson )
104
104
.containsEntry ("Metric1" , 1.0 )
105
105
.containsEntry ("Service" , "booking" )
106
- .containsEntry ("AwsRequestId " , "123ABC" )
106
+ .containsEntry ("function_request_id " , "123ABC" )
107
107
.containsKey ("_aws" );
108
108
});
109
109
}
@@ -127,7 +127,7 @@ public void metricsWithColdStart() {
127
127
.doesNotContainKey ("Metric1" )
128
128
.containsEntry ("ColdStart" , 1.0 )
129
129
.containsEntry ("Service" , "booking" )
130
- .containsEntry ("AwsRequestId " , "123ABC" )
130
+ .containsEntry ("function_request_id " , "123ABC" )
131
131
.containsKey ("_aws" );
132
132
133
133
logAsJson = readAsJson (s [1 ]);
@@ -136,7 +136,7 @@ public void metricsWithColdStart() {
136
136
.doesNotContainKey ("ColdStart" )
137
137
.containsEntry ("Metric1" , 1.0 )
138
138
.containsEntry ("Service" , "booking" )
139
- .containsEntry ("AwsRequestId " , "123ABC" )
139
+ .containsEntry ("function_request_id " , "123ABC" )
140
140
.containsKey ("_aws" );
141
141
});
142
142
}
@@ -160,7 +160,7 @@ public void noColdStartMetricsWhenColdStartDone() {
160
160
.doesNotContainKey ("Metric1" )
161
161
.containsEntry ("ColdStart" , 1.0 )
162
162
.containsEntry ("Service" , "booking" )
163
- .containsEntry ("AwsRequestId " , "123ABC" )
163
+ .containsEntry ("function_request_id " , "123ABC" )
164
164
.containsKey ("_aws" );
165
165
166
166
logAsJson = readAsJson (s [1 ]);
@@ -169,7 +169,7 @@ public void noColdStartMetricsWhenColdStartDone() {
169
169
.doesNotContainKey ("ColdStart" )
170
170
.containsEntry ("Metric1" , 1.0 )
171
171
.containsEntry ("Service" , "booking" )
172
- .containsEntry ("AwsRequestId " , "123ABC" )
172
+ .containsEntry ("function_request_id " , "123ABC" )
173
173
.containsKey ("_aws" );
174
174
175
175
logAsJson = readAsJson (s [2 ]);
@@ -178,7 +178,7 @@ public void noColdStartMetricsWhenColdStartDone() {
178
178
.doesNotContainKey ("ColdStart" )
179
179
.containsEntry ("Metric1" , 1.0 )
180
180
.containsEntry ("Service" , "booking" )
181
- .containsEntry ("AwsRequestId " , "123ABC" )
181
+ .containsEntry ("function_request_id " , "123ABC" )
182
182
.containsKey ("_aws" );
183
183
});
184
184
}
@@ -200,7 +200,7 @@ public void metricsWithStreamHandler() throws IOException {
200
200
assertThat (logAsJson )
201
201
.containsEntry ("Metric1" , 1.0 )
202
202
.containsEntry ("Service" , "booking" )
203
- .containsEntry ("AwsRequestId " , "123ABC" )
203
+ .containsEntry ("function_request_id " , "123ABC" )
204
204
.containsKey ("_aws" );
205
205
});
206
206
}
@@ -277,7 +277,7 @@ public void metricsPublishedEvenHandlerThrowsException() {
277
277
assertThat (logAsJson )
278
278
.containsEntry ("CoolMetric" , 1.0 )
279
279
.containsEntry ("Service" , "booking" )
280
- .containsEntry ("AwsRequestId " , "123ABC" )
280
+ .containsEntry ("function_request_id " , "123ABC" )
281
281
.containsKey ("_aws" );
282
282
});
283
283
}
0 commit comments