-
Notifications
You must be signed in to change notification settings - Fork 149
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
Fix: Remove dependency on guzzlehttp/psr7 #38
Conversation
interface Transport | ||
{ | ||
/** | ||
* @param Span[][] $traces | ||
* @return ResponseInterface |
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 return value of any of the available implementations in this repository is never used, so it is probably not necessary to return anything from this method at all.
|
||
final class Noop implements Transport | ||
{ | ||
public function send(array $traces) | ||
{ | ||
return new Response(); |
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.
See above.
composer.json
Outdated
"opentracing/opentracing": "1.0.0-beta5", | ||
"psr/http-message": "^1.0", |
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.
Added this dependency because it is used in
dd-trace-php/src/DDTrace/Encoder.php
Lines 5 to 13 in 8826319
use Psr\Http\Message\StreamInterface; | |
interface Encoder | |
{ | |
/** | |
* @param Span[][]|array $traces | |
* @return string|StreamInterface | |
*/ | |
public function encodeTraces(array $traces); |
@@ -21,8 +21,9 @@ | |||
], | |||
"require": { | |||
"php": "^5.6 || ^7.0", | |||
"guzzlehttp/psr7": "^1.4.0", | |||
"ext-curl": "*", |
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.
Since we are using curl, this should probably be a dependency.
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.
All makes sense, thanks!
Thank you, @chuck! |
This PR
guzzlehttp/psr7
and replaces it withpsr/http-message