PHP Class Tolerance\Bridge\Guzzle\Tracer\TracerSubscriber
If you are using Guzzle 6 (recommended), you should have a look to the TracerMiddleware.
Afficher le fichier
Open project: sroze/tolerance
Méthodes publiques
Méthode |
Description |
|
__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 ) |
|
|
Method Details
__construct()
public méthode
public __construct ( GuzzleMessageSpanFactory $guzzleMessageSpanFactory, Tolerance\Tracer\Tracer $tracer ) |
$guzzleMessageSpanFactory |
Tolerance\Bridge\Guzzle\Tracer\SpanFactory\GuzzleMessageSpanFactory |
|
$tracer |
Tolerance\Tracer\Tracer |
|
getEvents()
public méthode
onBefore()
public méthode
public onBefore ( GuzzleHttp\Event\BeforeEvent $event ) |
$event |
GuzzleHttp\Event\BeforeEvent |
|
onComplete()
public méthode
public onComplete ( GuzzleHttp\Event\CompleteEvent $event ) |
$event |
GuzzleHttp\Event\CompleteEvent |
|
public onEnd ( GuzzleHttp\Message\RequestInterface $request, GuzzleHttp\Message\ResponseInterface $response = null ) |
$request |
GuzzleHttp\Message\RequestInterface |
|
$response |
GuzzleHttp\Message\ResponseInterface |
|
public onError ( GuzzleHttp\Event\ErrorEvent $event ) |
$event |
GuzzleHttp\Event\ErrorEvent |
|