-
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
Support for guzzle 6 #254
Support for guzzle 6 #254
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent job @labbati! Just a few little tweaks and we're good to go! :D
*/ | ||
protected function setUrlTag(Span $span, $request) | ||
{ | ||
if (!is_a($request, '\GuzzleHttp\Message\RequestInterface')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big deal for this PR, but just a TODO for later. Let's plan on changing all the is_a()
calls throughout the codebase with instanceof
which is roughly 50% faster (but all benchmarks are lies!) Lol.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The advantage of this is that it is a string and it is probably less risky?
/** | ||
* Utility functions to handle version numbers and matching. | ||
*/ | ||
final class Versions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
* @param array|null $responseStack | ||
* @return Client | ||
*/ | ||
protected function getMockedClient(array $responseStack = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Co-Authored-By: labbati <luca.abbati@datadoghq.com>
Description
This PR add support for Guzzle 6
Readiness checklist