Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ZNeumann committed Sep 17, 2024
1 parent a0d261f commit c8c3637
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions agent/php_internal_instrument.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,14 +802,15 @@ static void nr_php_instrument_datastore_operation_call(

/*
* Like nr_php_instrument_datastore_operation_call() but does not
* call the underlying internal function
* call the underlying internal function. This allows multiple
* datastore metrics to be creating during a single underlying
* PHP call.
*/
static void nr_php_instrument_datastore_operation(
nr_datastore_t datastore,
const char* operation,
nr_datastore_instance_t* instance,
bool instance_only,
INTERNAL_FUNCTION_PARAMETERS) {
bool instance_only) {
nr_segment_t* segment = NULL;
nr_segment_datastore_params_t params = {
.datastore = {
Expand Down Expand Up @@ -1602,8 +1603,7 @@ NR_INNER_WRAPPER(memcached_multi_connect_function) {
if (NULL != host) {
instance = nr_php_memcached_create_datastore_instance(Z_STRVAL_P(host), Z_LVAL_P(port));
nr_php_instrument_datastore_operation(NR_DATASTORE_MEMCACHE,
NULL, instance, true,
INTERNAL_FUNCTION_PARAM_PASSTHRU);
NULL, instance, true);
}
}
ZEND_HASH_FOREACH_END();
Expand Down

0 comments on commit c8c3637

Please sign in to comment.