Skip to content

Commit e1ef8d3

Browse files
committed
chore(agent): add suggest package function to magento
1 parent b00dcc3 commit e1ef8d3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

agent/fw_magento2.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#include "nr_txn.h"
1313
#include "util_logging.h"
1414

15+
#define PHP_PACKAGE_NAME "magento/magento2-base"
16+
1517
/*
1618
* Magento 2 adds (depending on how you count)
1719
* either three or four completely separate routing paths in the Community
@@ -540,7 +542,10 @@ void nr_magento2_enable(TSRMLS_D) {
540542
nr_magento2_ui_controller_execute TSRMLS_CC);
541543

542544
if (NRINI(vulnerability_management_package_detection_enabled)) {
543-
nr_txn_add_php_package(NRPRG(txn), "magento",
545+
nr_txn_add_php_package(NRPRG(txn), PHP_PACKAGE_NAME,
544546
PHP_PACKAGE_VERSION_UNKNOWN);
545547
}
548+
549+
nr_txn_suggest_package_supportability_metric(NRPRG(txn), PHP_PACKAGE_NAME,
550+
PHP_PACKAGE_VERSION_UNKNOWN);
546551
}

0 commit comments

Comments
 (0)