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

Fix: Remove dependency on guzzlehttp/psr7 #38

Merged
merged 1 commit into from
Jul 13, 2018

Conversation

localheinz
Copy link
Contributor

This PR

  • removes the dependency on guzzlehttp/psr7 and replaces it with psr/http-message

@localheinz localheinz changed the title Fix: Replace guzzlehttp/psr7 with psr/http-message Fix: Remove dependency on guzzlehttp/psr7 Jul 13, 2018
interface Transport
{
/**
* @param Span[][] $traces
* @return ResponseInterface
Copy link
Contributor Author

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();
Copy link
Contributor Author

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",
Copy link
Contributor Author

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

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": "*",
Copy link
Contributor Author

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.

Copy link
Contributor

@chuck chuck left a 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!

@chuck chuck merged commit fa94633 into DataDog:master Jul 13, 2018
@localheinz localheinz deleted the fix/guzzle branch July 13, 2018 18:04
@localheinz
Copy link
Contributor Author

Thank you, @chuck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants