lib/opentelemetry/instrumentation/mongo/subscriber.rb in opentelemetry-instrumentation-mongo-0.12.0 vs lib/opentelemetry/instrumentation/mongo/subscriber.rb in opentelemetry-instrumentation-mongo-0.13.0

- old
+ new

@@ -69,10 +69,10 @@ 'db.name' => event.database_name, 'db.operation' => event.command_name, 'db.statement' => CommandSerializer.new(event.command).serialize, 'net.peer.name' => event.address.host, 'net.peer.port' => event.address.port - } + }.compact end def get_collection(command) collection = command.values.first collection if collection.is_a?(String)