Skip to content

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
{
/**
* @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.

{
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.

"php": "^5.6 || ^7.0",
"guzzlehttp/psr7": "^1.4.0",
"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);
.

"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.

2 participants