Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions agent/php_user_instrument.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,13 +570,13 @@ nruserfn_t* nr_php_add_custom_tracer_named(const char* namestr,
return p; /* return the wraprec we are duplicating */
}
}
#else
wraprec = nr_php_user_instrument_wraprec_hashmap_add(namestr, namestrlen);
#endif
nrl_verbosedebug(
NRL_INSTRUMENT, "adding custom for '" NRP_FMT_UQ "%.5s" NRP_FMT_UQ "'",
NRP_PHP(wraprec->classname),
(0 == wraprec->classname) ? "" : "::", NRP_PHP(wraprec->funcname));
#else
wraprec = nr_php_user_instrument_wraprec_hashmap_add(namestr, namestrlen);
#endif

nr_php_wrap_user_function_internal(wraprec TSRMLS_CC);
nr_php_add_custom_tracer_common(wraprec);
Expand Down
1 change: 1 addition & 0 deletions agent/php_user_instrument_wraprec_hashmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ nruserfn_t* nr_php_user_instrument_wraprec_hashmap_add(const char* namestr, size

wraprec->supportability_metric = nr_txn_create_fn_supportability_metric(
wraprec->funcname, wraprec->classname);
nrl_verbosedebug(NRL_INSTRUMENT, "adding custom wrapper for '%s'", namestr);
} else {
nrl_verbosedebug(NRL_INSTRUMENT, "reusing custom wrapper for '%s'", namestr);
}
Expand Down