Bases: object
Base Driver class.
This class provides protected common methods that do not rely on a specific storage backend. Public methods notify() and/or get_report(), which require using storage backend API, must be overridden and implemented by any class derived from this class.
Forms and returns report composed from the stored notifications.
base_id – Base id of trace elements.
Query all error traces from the storage.
base_id and timestamp.
Query all traces from the storage.
fields – Set of trace fields to return. Defaults to ‘base_id’ and ‘timestamp’
List of traces, where each trace is a dictionary containing at least base_id and timestamp.
This method will be called on each notifier.notify() call.
To add new drivers you should, create new subclass of this class and implement notify method.
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 the backend. “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.
Bases: osprofiler.drivers.base.Driver
Retrieves and parses notification from Elasticsearch.
base_id – Base id of trace elements.
Query all traces from the storage.
fields – Set of trace fields to return. Defaults to ‘base_id’ and ‘timestamp’
List of traces, where each trace is a dictionary containing at least base_id and timestamp.
Send notifications to Elasticsearch.
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. “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.
Bases: osprofiler.drivers.base.Driver
Create tags for OpenTracing span.
info – Information from OSProfiler trace.
A dictionary contains standard tags from OpenTracing sematic conventions, and some other custom tags related to http, db calls.
This method will be called on each notifier.notify() call.
To add new drivers you should, create new subclass of this class and implement notify method.
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 the backend. “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.
Classes to use VMware vRealize Log Insight as the trace data store.
Bases: object
A minimal Log Insight client.
Bases: osprofiler.drivers.base.Driver
Driver for storing trace data in VMware vRealize Log Insight.
The driver uses Log Insight ingest service to store trace data and uses the query service to retrieve it. The minimum required Log Insight version is 3.3.
The connection string to initialize the driver should be of the format: loginsight://<username>:<password>@<loginsight-host>
If the username or password contains the character ‘:’ or ‘@’, it must be escaped using URL encoding. For example, the connection string to connect to Log Insight server at 10.1.2.3 using username “osprofiler” and password “p@ssword” is: loginsight://osprofiler:p%40ssword@10.1.2.3
Bases: osprofiler.drivers.base.Driver
Forms and returns report composed from the stored notifications.
base_id – Base id of trace elements.
Send notifications to backend via oslo.messaging notifier API.
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. “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.
context – request context that is mostly used to specify current active user and tenant.
Bases: osprofiler.drivers.base.Driver
Retrieves and parses notification from MongoDB.
base_id – Base id of trace elements.
Query all traces from the storage.
fields – Set of trace fields to return. Defaults to ‘base_id’ and ‘timestamp’
List of traces, where each trace is a dictionary containing at least base_id and timestamp.
Send notifications to MongoDB.
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. “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.
Bases: osprofiler.drivers.base.Driver
Retrieves and parses notification from Redis.
base_id – Base id of trace elements.
Query all traces from the storage.
fields – Set of trace fields to return. Defaults to ‘base_id’ and ‘timestamp’
List of traces, where each trace is a dictionary containing at least base_id and timestamp.
Send notifications to Redis.
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. “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.
Bases: osprofiler.drivers.redis_driver.Redis
, osprofiler.drivers.base.Driver
Bases: osprofiler.drivers.base.Driver
Forms and returns report composed from the stored notifications.
base_id – Base id of trace elements.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.