Skip to content

Commit f3ac653

Browse files
committed
docs(agent): add description for guzzle client construct function
1 parent 40ab8cf commit f3ac653

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

agent/lib_guzzle6.c

+6
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,12 @@ static void nr_guzzle_enable(){
416416
}
417417
}
418418

419+
/*
420+
* This function checks if the guzzle middleware is callable and adds the
421+
* middleware (newrelic\Guzzle\middleware) to the GuzzleHttp\Client
422+
* handler stack by invoking push(). If the middleware is not callable, the
423+
* function exits by using the goto jump statement
424+
*/
419425
NR_PHP_WRAPPER_START(nr_guzzle_client_construct_helper){
420426
zval* this_var = nr_php_scope_get(NR_EXECUTE_ORIG_ARGS TSRMLS_CC);
421427
zval* retval;

0 commit comments

Comments
 (0)