-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,10 @@ | |
|
||
namespace DDTrace; | ||
|
||
use Psr\Http\Message\ResponseInterface; | ||
|
||
interface Transport | ||
{ | ||
/** | ||
* @param Span[][] $traces | ||
* @return ResponseInterface | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
*/ | ||
public function send(array $traces); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,11 @@ | |
namespace DDTrace\Transport; | ||
|
||
use DDTrace\Transport; | ||
use GuzzleHttp\Psr7\Response; | ||
|
||
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 commentThe reason will be displayed to describe this comment to others. Learn more. See above. |
||
} | ||
|
||
public function setHeader($key, $value) | ||
|
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.