diff options
Diffstat (limited to 'osprofiler/drivers/mongodb.py')
-rw-r--r-- | osprofiler/drivers/mongodb.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/osprofiler/drivers/mongodb.py b/osprofiler/drivers/mongodb.py index 86119e4..fdd4a46 100644 --- a/osprofiler/drivers/mongodb.py +++ b/osprofiler/drivers/mongodb.py @@ -45,15 +45,12 @@ class MongoDB(base.Driver): :param info: Contains information about trace element. In payload dict there are always 3 ids: "base_id" - uuid that is common for all notifications - related to one trace. Used to simplify - retrieving of all trace elements from - MongoDB. + related to one trace. Used to simplify retrieving of all + trace elements from MongoDB. "parent_id" - uuid of parent element in trace "trace_id" - uuid of current element in trace - With parent_id and trace_id it's quite simple to build tree of trace elements, which simplify analyze of trace. - """ data = info.copy() data["project"] = self.project @@ -76,9 +73,9 @@ class MongoDB(base.Driver): """Query all traces from the storage. :param fields: Set of trace fields to return. Defaults to 'base_id' - and 'timestamp' - :return List of traces, where each trace is a dictionary containing - at least `base_id` and `timestamp`. + and 'timestamp' + :returns: List of traces, where each trace is a dictionary containing + at least `base_id` and `timestamp`. """ fields = set(fields or self.default_trace_fields) ids = self.db.profiler.find({}).distinct("base_id") |