PHP Class Tolerance\Bridge\Guzzle\Tracer\SpanFactory\GuzzleMessageSpanFactory

显示文件 Open project: sroze/tolerance Class Usage Examples

Public Methods

Method Description
__construct ( Tolerance\Tracer\IdentifierGenerator\IdentifierGenerator $identifierGenerator, Tolerance\Tracer\Clock\Clock $clock, Tolerance\Tracer\EndpointResolver\EndpointResolver $endpointResolver, Tolerance\Tracer\SpanStack\SpanStack $spanStack )
fromIncomingResponse ( GuzzleHttp\Message\RequestInterface $originalRequest, GuzzleHttp\Message\ResponseInterface $response = null ) : Span
fromOutgoingRequest ( GuzzleHttp\Message\RequestInterface $request ) : Span

Private Methods

Method Description
getName ( GuzzleHttp\Message\RequestInterface $request ) : string

Method Details

__construct() public method

public __construct ( Tolerance\Tracer\IdentifierGenerator\IdentifierGenerator $identifierGenerator, Tolerance\Tracer\Clock\Clock $clock, Tolerance\Tracer\EndpointResolver\EndpointResolver $endpointResolver, Tolerance\Tracer\SpanStack\SpanStack $spanStack )
$identifierGenerator Tolerance\Tracer\IdentifierGenerator\IdentifierGenerator
$clock Tolerance\Tracer\Clock\Clock
$endpointResolver Tolerance\Tracer\EndpointResolver\EndpointResolver
$spanStack Tolerance\Tracer\SpanStack\SpanStack

fromIncomingResponse() public method

public fromIncomingResponse ( GuzzleHttp\Message\RequestInterface $originalRequest, GuzzleHttp\Message\ResponseInterface $response = null ) : Span
$originalRequest GuzzleHttp\Message\RequestInterface
$response GuzzleHttp\Message\ResponseInterface
return Tolerance\Tracer\Span\Span

fromOutgoingRequest() public method

public fromOutgoingRequest ( GuzzleHttp\Message\RequestInterface $request ) : Span
$request GuzzleHttp\Message\RequestInterface
return Tolerance\Tracer\Span\Span