Guard command completion listener against unsupported observation context.
We now no longer attempt to complete the Observation if the context is not a MongoDB one. For commands that target the admin database and run within a parent observation, we still might have an Observation but that one points to the parent invocation and not the MongoDB one as we do not record commands for the admin database.
Closes#4481
@ -133,11 +133,10 @@ public class MongoObservationCommandListener implements CommandListener {
@@ -133,11 +133,10 @@ public class MongoObservationCommandListener implements CommandListener {
@ -157,11 +156,10 @@ public class MongoObservationCommandListener implements CommandListener {
@@ -157,11 +156,10 @@ public class MongoObservationCommandListener implements CommandListener {