Skip to content

Commit b9f327f

Browse files
committed
chore(agent): report package supportability metric
1 parent 5cc7987 commit b9f327f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

agent/fw_cakephp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#include "util_logging.h"
1313
#include "util_memory.h"
1414

15+
#define PHP_PACKAGE_NAME "cakephp/cakephp"
16+
1517
nr_framework_classification_t nr_cakephp_special_1(
1618
const char* filename TSRMLS_DC) {
1719
NR_UNUSED_TSRMLS;
@@ -311,6 +313,8 @@ void nr_cakephp_enable(TSRMLS_D) {
311313
nr_php_wrap_user_function(
312314
NR_PSTR("Cake\\Controller\\Controller::invokeAction"),
313315
nr_cakephp_name_the_wt_2 TSRMLS_CC);
316+
nr_txn_suggest_package_supportability_metric(NRPRG(txn), PHP_PACKAGE_NAME,
317+
PHP_PACKAGE_VERSION_UNKNOWN);
314318
#if ZEND_MODULE_API_NO >= ZEND_8_0_X_API_NO \
315319
&& !defined OVERWRITE_ZEND_EXECUTE_DATA
316320
nr_php_wrap_user_function_before_after_clean(

0 commit comments

Comments
 (0)