File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 18
18
19
19
#include "lib_mongodb_private.h"
20
20
21
+ #define PHP_PACKAGE_NAME "mongodb/mongodb"
22
+
21
23
static int nr_mongodb_is_server (const zval * obj TSRMLS_DC ) {
22
24
return nr_php_object_instanceof_class (obj ,
23
25
"MongoDB\\Driver\\Server" TSRMLS_CC );
@@ -445,7 +447,12 @@ void nr_mongodb_enable() {
445
447
#endif /* OAPI */
446
448
447
449
if (NRINI (vulnerability_management_package_detection_enabled )) {
448
- nr_txn_add_php_package (NRPRG (txn ), "mongodb/mongodb" ,
450
+ nr_txn_add_php_package (NRPRG (txn ), PHP_PACKAGE_NAME ,
449
451
PHP_PACKAGE_VERSION_UNKNOWN );
450
452
}
453
+
454
+ nr_fw_support_add_package_supportability_metric (
455
+ NRPRG (txn ), PHP_PACKAGE_NAME , NULL ,
456
+ nr_php_packages_get_package (NRPRG (txn )-> php_packages ,
457
+ PHP_PACKAGE_NAME ));
451
458
}
You can’t perform that action at this time.
0 commit comments