File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/resource-detector-aws/src/detectors Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ export class AwsEcsDetector implements ResourceDetector {
186186
187187 // Primary pattern: Match /ecs/taskId/taskId-containerId format (new ECS Fargate)
188188 // This captures the full taskId-containerId part after the last slash
189- const ecsPattern = / \/ e c s \/ [ a - z A - Z 0 - 9 - ] + \/ ( [ a - z A - Z 0 - 9 - ] + ) $ / ;
189+ const ecsPattern = / \/ e c s \/ [ a - f A - F 0 - 9 - ] + \/ ( [ a - f A - F 0 - 9 - ] + ) $ / ;
190190 const ecsMatch = line . match ( ecsPattern ) ;
191191 if (
192192 ecsMatch &&
@@ -212,8 +212,7 @@ export class AwsEcsDetector implements ResourceDetector {
212212
213213 // Legacy fallback: original logic for lines that are just the container ID (64 chars)
214214 if (
215- line . length > AwsEcsDetector . CONTAINER_ID_LENGTH &&
216- ! line . includes ( '/' )
215+ line . length > AwsEcsDetector . CONTAINER_ID_LENGTH
217216 ) {
218217 return line . substring ( line . length - AwsEcsDetector . CONTAINER_ID_LENGTH ) ;
219218 }
You can’t perform that action at this time.
0 commit comments