diff options
Diffstat (limited to 'osprofiler/drivers/redis_driver.py')
-rw-r--r-- | osprofiler/drivers/redis_driver.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/osprofiler/drivers/redis_driver.py b/osprofiler/drivers/redis_driver.py index 48436cf..ba7a121 100644 --- a/osprofiler/drivers/redis_driver.py +++ b/osprofiler/drivers/redis_driver.py @@ -61,15 +61,12 @@ class Redis(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 - Redis. + related to one trace. Used to simplify retrieving of all + trace elements from Redis. "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 @@ -94,9 +91,9 @@ class Redis(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) |