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

Support for guzzle 6 #254

Merged
merged 9 commits into from
Jan 23, 2019
Merged

Support for guzzle 6 #254

merged 9 commits into from
Jan 23, 2019

Conversation

labbati
Copy link
Member

@labbati labbati commented Jan 23, 2019

Description

This PR add support for Guzzle 6

Readiness checklist

@labbati labbati changed the title Add support for guzzle 6 Support for guzzle 6 Jan 23, 2019
@labbati labbati added 🎉 new-integration A new integration and removed ☠️ do-not-merge/WIP labels Jan 23, 2019
@labbati labbati added this to the 0.11.0 milestone Jan 23, 2019
@labbati labbati requested review from pawelchcki and SammyK January 23, 2019 14:21
composer.json Outdated Show resolved Hide resolved
@labbati labbati modified the milestones: 0.12.0, 0.11.0 Jan 23, 2019
Copy link
Contributor

@SammyK SammyK left a 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')) {
Copy link
Contributor

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.

Copy link
Member Author

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?

src/DDTrace/Util/CodeTracer.php Outdated Show resolved Hide resolved
src/DDTrace/Util/CodeTracer.php Outdated Show resolved Hide resolved
/**
* Utility functions to handle version numbers and matching.
*/
final class Versions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

src/DDTrace/Util/Versions.php Outdated Show resolved Hide resolved
src/DDTrace/Util/Versions.php Outdated Show resolved Hide resolved
src/DDTrace/Util/Versions.php Outdated Show resolved Hide resolved
* @param array|null $responseStack
* @return Client
*/
protected function getMockedClient(array $responseStack = null)
Copy link
Contributor

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>
@SammyK SammyK merged commit ffb1fc0 into master Jan 23, 2019
@labbati labbati deleted the labbati/guzzle-56 branch February 7, 2019 08:11
bwoebi pushed a commit that referenced this pull request Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 new-integration A new integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants