diff options
Diffstat (limited to 'osprofiler/drivers/elasticsearch_driver.py')
-rw-r--r-- | osprofiler/drivers/elasticsearch_driver.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/osprofiler/drivers/elasticsearch_driver.py b/osprofiler/drivers/elasticsearch_driver.py index d4a6b3d..da9be17 100644 --- a/osprofiler/drivers/elasticsearch_driver.py +++ b/osprofiler/drivers/elasticsearch_driver.py @@ -58,15 +58,12 @@ class ElasticsearchDriver(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 - Elasticsearch. + related to one trace. Used to simplify retrieving of all + trace elements from Elasticsearch. "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. - """ info = info.copy() @@ -111,9 +108,9 @@ class ElasticsearchDriver(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`. """ query = {"match_all": {}} fields = set(fields or self.default_trace_fields) |