-
Notifications
You must be signed in to change notification settings - Fork 160
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
NoopSpan doesn't have additional methods #140
Comments
Hi @funkjedi, thanks for the issue. Working on it very soon! |
Fixed by #141 currently in CR. |
Hi @funkjedi, 0.4.2 has been released: https://github.com/DataDog/dd-trace-php/releases/tag/0.4.2 |
I am getting an error that may be related to this issue: Call to undefined method OpenTracing\NoopSpan::setRawError() Checking the code i found that the method is called in two integrations: src/DDTrace/Integrations/Curl/CurlIntegration.php |
Hi @alkin , we are aware of the issue and we will be providing a fix in two steps:
|
Just to let you know, we just release 0.5.0 which fixes the issue reported here (we implemented our own If you have a moment and can confirm that this actually works for you it would be great. Thanks for the patience. |
So far so good. |
Closing this issue as it seems to be resolved! |
Integration works fine for web requests but my Laravel workers fail when running
artisan queue:work
The problem appears to be the tracer is trying to use NoopSpan which doesn't have the extra methods implemented in
DDTrace\Span
.dd-trace-php/src/DDTrace/Tracer.php
Lines 97 to 99 in 690bd17
There probably needs to be a
OpenTracing\NoopSpan
subclass in DDTrace that implements all the additional methods that have been added.Temporarily worked around by registering the DDTrace service provider from my AppServiceProvider only when not on CLI.
The text was updated successfully, but these errors were encountered: