change function list_traces of mongodb module
osprofiler fails when it is configed with mongon. the minimum version of pymongo osprofile requires is 3.0.2 and in this version and after when function list_traces is is invoked error will show described in the bug issue. Change-Id: I2510660c36aaa89117a97c67b4cb61fa3dade14d Closes-Bug: 1827480
This commit is contained in:
parent
9847b8984a
commit
5386d7c40c
|
@ -81,7 +81,7 @@ class MongoDB(base.Driver):
|
|||
at least `base_id` and `timestamp`.
|
||||
"""
|
||||
fields = set(fields or self.default_trace_fields)
|
||||
ids = self.db.profiler.find("*").distinct("base_id")
|
||||
ids = self.db.profiler.find({}).distinct("base_id")
|
||||
out_format = {"base_id": 1, "timestamp": 1, "_id": 0}
|
||||
out_format.update({i: 1 for i in fields})
|
||||
return [self.db.profiler.find(
|
||||
|
|
Loading…
Reference in New Issue