Skip to content

Commit

Permalink
fix: set VM regardless of OAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
bduranleau-nr committed Jun 17, 2024
1 parent 6f0d244 commit 97777d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions agent/lib_mongodb.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ void nr_mongodb_enable() {
nr_mongodb_operation_before, nr_mongodb_operation_after,
nr_mongodb_operation_after, "databaseCommand");

#else /* Non-OAPI */
#else /* Non-OAPI */

/*
* We instrument interesting methods on the MongoDB\Collection class via their
Expand Down Expand Up @@ -422,9 +422,10 @@ void nr_mongodb_enable() {
NR_PSTR("MongoDB\\Operation\\DatabaseCommand::execute"),
nr_mongodb_operation, "databaseCommand" TSRMLS_CC);

#endif /* OAPI */

if (NRINI(vulnerability_management_package_detection_enabled)) {
nr_txn_add_php_package(NRPRG(txn), "mongodb/mongodb",
PHP_PACKAGE_VERSION_UNKNOWN);
}
#endif /* OAPI */
}

0 comments on commit 97777d0

Please sign in to comment.