Skip to content

Commit 97777d0

Browse files
committed
fix: set VM regardless of OAPI
1 parent 6f0d244 commit 97777d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

agent/lib_mongodb.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ void nr_mongodb_enable() {
329329
nr_mongodb_operation_before, nr_mongodb_operation_after,
330330
nr_mongodb_operation_after, "databaseCommand");
331331

332-
#else /* Non-OAPI */
332+
#else /* Non-OAPI */
333333

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

425+
#endif /* OAPI */
426+
425427
if (NRINI(vulnerability_management_package_detection_enabled)) {
426428
nr_txn_add_php_package(NRPRG(txn), "mongodb/mongodb",
427429
PHP_PACKAGE_VERSION_UNKNOWN);
428430
}
429-
#endif /* OAPI */
430431
}

0 commit comments

Comments
 (0)