aws / aws-xray-sdk-node

The official AWS X-Ray SDK for Node.js.
Apache License 2.0
267 stars 154 forks source link

xray daemon terminating on Elastic Beanstalk #498

Closed Caleb-Oneyemi closed 1 year ago

Caleb-Oneyemi commented 2 years ago

Hello. Currently having issues running the xray daemon alongside an express app hosted on Elastic Beanstalk.

I followed the steps for downloading and running the X-Ray daemon manually on a linux machine using the xray.config as stated here

I'm running Docker on a 64bit Amazon Linux 2/3.4.13 Node version is 16.13.0 aws-xray-sdk version is 3.3.4

Tried this on t2.micro and t2.small.

After I deploy the beanstalk application I get this in the logs

2022-04-08T14:28:26Z [Info] Initializing AWS X-Ray daemon 3.3.3 2022-04-08T14:28:26Z [Info] Using buffer memory limit of 9 MB 2022-04-08T14:28:26Z [Info] 144 segment buffers allocated 2022-04-08T14:28:26Z [Info] Using region: us-east-2 2022-04-08T14:28:26Z [Info] HTTP Proxy server using X-Ray Endpoint 2022-04-08T14:28:26Z [Info] Starting proxy http server on 127.0.0.1:2000 2022-04-08T14:29:07Z [Info] Got shutdown signal: terminated

Any ideas on how to fix this?

srprash commented 2 years ago

Hi @Caleb-Oneyemi In your X-Ray daemon's config file (cfg.yaml), can you set the LogLevel to Debug and see if there are any errors being encountered?

carolabadeer commented 1 year ago

Closing as stale issue - please reopen if there are any further questions