File tree Expand file tree Collapse file tree 3 files changed +62
-1
lines changed
lib/apm-client/http-apm-client
test/apm-client/http-apm-client Expand file tree Collapse file tree 3 files changed +62
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,25 @@ Notes:
33
33
34
34
See the <<upgrade-to-v4>> guide.
35
35
36
+ ==== Unreleased
37
+
38
+ [float]
39
+ ===== Breaking changes
40
+
41
+ [float]
42
+ ===== Features
43
+
44
+ - Minor improvement to container ID parsing from /etc/cgroup v1 files in
45
+ AWS ECS Fargate, where the pattern has been observed to sometimes differ
46
+ from the documented pattern. (https://github.com/elastic/apm/issues/888[APM spec issue #888])
47
+
48
+
49
+ [float]
50
+ ===== Bug fixes
51
+
52
+ [float]
53
+ ===== Chores
54
+
36
55
37
56
[[release-notes-4.7.3]]
38
57
==== 4.7.3 - 2024/08/09
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const uuidSource =
12
12
'[0-9a-f]{8}[-_][0-9a-f]{4}[-_][0-9a-f]{4}[-_][0-9a-f]{4}[-_][0-9a-f]{12}' ;
13
13
const containerSource = '[0-9a-f]{64}' ;
14
14
const taskSource = '[0-9a-f]{32}' ;
15
- const awsEcsSource = '[0-9a-f]{32}-[0-9]{10}' ;
15
+ const awsEcsSource = '[0-9a-f]{32}-[0-9]{1, 10}' ;
16
16
17
17
const lineReg = / ^ ( \d + ) : ( [ ^ : ] * ) : ( .+ ) $ / ;
18
18
const podReg = new RegExp ( `pod(${ uuidSource } )(?:.slice)?$` ) ;
Original file line number Diff line number Diff line change @@ -265,6 +265,48 @@ tape.test('basics', (t) => {
265
265
} ,
266
266
) ;
267
267
268
+ // https://github.com/elastic/apm/issues/888 Fewer than ten digits observed
269
+ // for the suffix in ECS Fargate in the wild.
270
+ t . deepEqual (
271
+ parse (
272
+ '1:name=systemd:/ecs/46686c7c701cdfdf2549f88f7b9575e9/46686c7c701cdfdf2549f88f7b9575e9-123456789' ,
273
+ // ^^^^^^^^^
274
+ ) ,
275
+ {
276
+ entries : [
277
+ {
278
+ id : '1' ,
279
+ groups : 'name=systemd' ,
280
+ path : '/ecs/46686c7c701cdfdf2549f88f7b9575e9/46686c7c701cdfdf2549f88f7b9575e9-123456789' ,
281
+ controllers : [ 'name=systemd' ] ,
282
+ taskId : '46686c7c701cdfdf2549f88f7b9575e9' ,
283
+ } ,
284
+ ] ,
285
+ containerId :
286
+ '34dc0b5e626f2c5c4c5170e34b10e7654ce36f0fcd532739f4445baabea03376' ,
287
+ taskId : '46686c7c701cdfdf2549f88f7b9575e9' ,
288
+ } ,
289
+ ) ;
290
+ t . deepEqual (
291
+ parse (
292
+ '1:name=systemd:/ecs/46686c7c701cdfdf2549f88f7b9575e9/46686c7c701cdfdf2549f88f7b9575e9-1' ,
293
+ ) ,
294
+ {
295
+ entries : [
296
+ {
297
+ id : '1' ,
298
+ groups : 'name=systemd' ,
299
+ path : '/ecs/46686c7c701cdfdf2549f88f7b9575e9/46686c7c701cdfdf2549f88f7b9575e9-1' ,
300
+ controllers : [ 'name=systemd' ] ,
301
+ taskId : '46686c7c701cdfdf2549f88f7b9575e9' ,
302
+ } ,
303
+ ] ,
304
+ containerId :
305
+ '34dc0b5e626f2c5c4c5170e34b10e7654ce36f0fcd532739f4445baabea03376' ,
306
+ taskId : '46686c7c701cdfdf2549f88f7b9575e9' ,
307
+ } ,
308
+ ) ;
309
+
268
310
t . deepEqual (
269
311
parse ( `
270
312
12:devices:/user.slice
You can’t perform that action at this time.
0 commit comments