Skip to content
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

Tracing doesn't work with Elastic Beanstalk #14

Open
csimpi opened this issue May 6, 2021 · 4 comments
Open

Tracing doesn't work with Elastic Beanstalk #14

csimpi opened this issue May 6, 2021 · 4 comments

Comments

@csimpi
Copy link

csimpi commented May 6, 2021

Hi, thank you for this package!
I would like to use AWS X-Ray on an Elastic Beanstalk environment.
I've enabled X-Ray the daemon is listening on 127.0.0.1:2000
AWSXRayDaemonWriteAccess has been attached to the aws-elasticbeanstalk-ec2-role role.
The package has been installed and implemented to my Laravel App.
I've changed the submitter in the /config/xray.php to \Napp\Xray\Submission\DaemonSegmentSubmitter::class

Everything looks fine, but for some reason, nothing appears on the X-Ray console.
Did I miss something?

@aln-1
Copy link

aln-1 commented May 18, 2022

Hi, thank you for this package! I would like to use AWS X-Ray on an Elastic Beanstalk environment. I've enabled X-Ray the daemon is listening on 127.0.0.1:2000 AWSXRayDaemonWriteAccess has been attached to the aws-elasticbeanstalk-ec2-role role. The package has been installed and implemented to my Laravel App. I've changed the submitter in the /config/xray.php to \Napp\Xray\Submission\DaemonSegmentSubmitter::class

Everything looks fine, but for some reason, nothing appears on the X-Ray console. Did I miss something?

The problem is that the ALB does not pass the 'Sampled=1' chunk of the trace id header HTTP_X_AMZN_TRACE_ID .
take a look at #3

I ended extending the XrayServiceProvider boot method and modifying the header by adding ;Sampled=1 at the and of it.
After that x-ray started logging.

@adrianpaiva1
Copy link
Contributor

@aln-1 Is it possible for you to share an example of exactly what you did?

@aln-1
Copy link

aln-1 commented Jan 18, 2023

@aln-1 Is it possible for you to share an example of exactly what you did?

I don't have this chunk of code anymore but my previous reply explains the solution clearly.

@KostLinux
Copy link

Hello!
It's 2023 here, does anyone have solution for this issue? @aln-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants