fargatecli icon indicating copy to clipboard operation
fargatecli copied to clipboard

Enable X-Ray integration

Open arun-gupta opened this issue 6 years ago • 1 comments

Until sidecar containers are supported, or even after they're supported, it would be useful to enable X-Ray integration using a flag. This could be something during service create command.

arun-gupta avatar Apr 08 '18 15:04 arun-gupta

@arun-gupta I do this now by adding the x-ray agent to the app container that I'm running. It and the app are started by running a script when the container starts like this:

#!/bin/sh

# run the x-ray agent in the background and in local mode ( -o  ) to prevent
# the getting container instance metadata error
/usr/bin/xray -t 0.0.0.0:2000 -b 0.0.0.0:2000 -o --config /cfg.yaml &

# run the demo app in the foreground
exec /app.py

The Dockerfile defines the startup script like this:

ENTRYPOINT ["/startup.sh"]

This works well for me so far.

dougtoppin avatar Oct 13 '19 18:10 dougtoppin