Skip to content

EcsResource: Couldn't parse image #1788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
danielcompton opened this issue Mar 11, 2025 · 0 comments · May be fixed by #1789
Open

EcsResource: Couldn't parse image #1788

danielcompton opened this issue Mar 11, 2025 · 0 comments · May be fixed by #1789

Comments

@danielcompton
Copy link

danielcompton commented Mar 11, 2025

Component(s)

aws-resources

What happened?

Description

I can see in our logs this error:

Couldn't parse image '123456789012.dkr.ecr.us-east-2.amazonaws.com/abcdef:g123456789h12345678i12345678j12345678k12@sha256:ab1234c5678901234d567e890123f456789012345g6789012h3456789i123456'

from io.opentelemetry.contrib.aws.resource.EcsResource

Steps to Reproduce

Run a container on ECS? I haven't tried to reproduce it.

Expected Result

No errors

Actual Result

Error logged

Component version

io.opentelemetry.contrib/opentelemetry-aws-resources {:mvn/version "1.37.0-alpha"}

Log output

No response

Additional context

I'm guessing that the @sha256 extension is what is causing the problems. This came from https://aws.amazon.com/blogs/containers/announcing-software-version-consistency-for-amazon-ecs-services/

danielcompton added a commit to danielcompton/opentelemetry-java-contrib that referenced this issue Mar 11, 2025
danielcompton added a commit to danielcompton/opentelemetry-java-contrib that referenced this issue Mar 11, 2025
Mahoney added a commit to Mahoney-forks/opentelemetry-java-contrib that referenced this issue Apr 3, 2025
SHA256 is hex encoded, not just digits.

Fixes open-telemetry#1788

Signed-off-by: Robert Elliot <rob@lidalia.org.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant