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

[opentelemetry-php-contrib]: OpenTelemetry Laravel Auto-Instrumentation is not detecting jobs #1475

Open
Nelwhix opened this issue Jan 11, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Nelwhix
Copy link

Nelwhix commented Jan 11, 2025

Describe your environment Hi there, I set up laravel auto-instrumentation. and it is correctly detecting the http request, the calls to DB, but not the jobs.

Steps to reproduce
The entire code is in a docker container here

What is the expected behavior?
I expected to see some spans for the job

What is the actual behavior?
Screenshot 2025-01-11 at 19-39-13 Zipkin

More Context: I have a separate container for the api and the queue worker. The jobs are detected when I set QUEUE_CONNECTION to sync but not when it is set to database

@Nelwhix Nelwhix added the bug Something isn't working label Jan 11, 2025
@Nelwhix
Copy link
Author

Nelwhix commented Jan 11, 2025

@ChrisLightfootWild Hi Chris, Thanks for your work on the laravel auto instrumentation package, I am sure I am just misconfiguring something so please if you could point me in the right direction. I would appreaciate🙏.

@ChrisLightfootWild
Copy link
Contributor

@ChrisLightfootWild Hi Chris, Thanks for your work on the laravel auto instrumentation package, I am sure I am just misconfiguring something so please if you could point me in the right direction. I would appreaciate🙏.

Hey @Nelwhix 👋

Thanks for raising the issue. Based on your example repo, it looks like the database driver is being used for your queue. I wonder if this relates to long-running queues again 🤔. If you make several requests to the orders endpoint over a few seconds, I wonder if you might see the batch processor emit some of the telemetry that should be captured.

I will try to find some time to test this.

@ChrisLightfootWild ChrisLightfootWild self-assigned this Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants