PHP 클래스 Tolerance\Bridge\Guzzle\Tracer\TracerSubscriber

If you are using Guzzle 6 (recommended), you should have a look to the TracerMiddleware.
상속: implements GuzzleHttp\Event\SubscriberInterface
파일 보기 프로젝트 열기: sroze/tolerance

공개 메소드들

메소드 설명
__construct ( GuzzleMessageSpanFactory $guzzleMessageSpanFactory, Tolerance\Tracer\Tracer $tracer )
getEvents ( )
onBefore ( GuzzleHttp\Event\BeforeEvent $event )
onComplete ( GuzzleHttp\Event\CompleteEvent $event )
onEnd ( GuzzleHttp\Message\RequestInterface $request, GuzzleHttp\Message\ResponseInterface $response = null )
onError ( GuzzleHttp\Event\ErrorEvent $event )

메소드 상세

__construct() 공개 메소드

public __construct ( GuzzleMessageSpanFactory $guzzleMessageSpanFactory, Tolerance\Tracer\Tracer $tracer )
$guzzleMessageSpanFactory Tolerance\Bridge\Guzzle\Tracer\SpanFactory\GuzzleMessageSpanFactory
$tracer Tolerance\Tracer\Tracer

getEvents() 공개 메소드

public getEvents ( )

onBefore() 공개 메소드

public onBefore ( GuzzleHttp\Event\BeforeEvent $event )
$event GuzzleHttp\Event\BeforeEvent

onComplete() 공개 메소드

public onComplete ( GuzzleHttp\Event\CompleteEvent $event )
$event GuzzleHttp\Event\CompleteEvent

onEnd() 공개 메소드

public onEnd ( GuzzleHttp\Message\RequestInterface $request, GuzzleHttp\Message\ResponseInterface $response = null )
$request GuzzleHttp\Message\RequestInterface
$response GuzzleHttp\Message\ResponseInterface

onError() 공개 메소드

public onError ( GuzzleHttp\Event\ErrorEvent $event )
$event GuzzleHttp\Event\ErrorEvent