-
Notifications
You must be signed in to change notification settings - Fork 22
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
ECS resource detector crash #16
Comments
Hi @bonclay7 , Thanks for opening an issue. I tried to take a look at this issue. From the logs you posted I think the you're receiving an error when detector is trying to get host name (https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/detectors/aws/ecs/ecs.go#L72). I also submitted a pull request to add error message in this scenario as well (open-telemetry/opentelemetry-go-contrib#568). Ideally from the code looks like even if resource detector is not able to find |
Hi ! Tried the Fix above and it's working fine. Can't wait for the next release |
This fix is rolled out in recent release - https://github.com/open-telemetry/opentelemetry-go-contrib/releases/tag/v0.17.0 so closing this issue. Feel free to open new one if the issue still exists! |
Hello !
This is similar to #11. Using the ecs detector like this:
So, running on EC2 returns an error as expected,
process is not on ECS, cannot detect environment variables from ECS
.However on ECS, there is no error, and the application crash with the following logs
The text was updated successfully, but these errors were encountered: