aws / aws/aws-xray-sdk-java

ECSPlugin: could not obtain the container id from /proc/self/cgroup

Open
#415 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
100
Forks
100
PR merge metrics
No merged PRs in 30d

Description

I embedded xray sdk into my java program running in ECS service to send xray traces to CloudWatch.
The ECSPlugin is using com.amazonaws.xray.utils.DockerUtils to get the container id from file /proc/self/cgroup. The DockerUtils could not get the container id from /proc/self/cgroup because the program is running within the docker container.
We do have ECS metadata endpoint V4 activated and the container id should be obtained from the metadata.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.