summaryrefslogtreecommitdiff
path: root/osprofiler/_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* add support of otlp exporterHEADmasterSahid Orentino Ferdjaoui2023-05-101-0/+12
| | | | | | Depends-On: Idcff5d79b4884dd1cc7ed1ab42c9e4ce89d4a6d2 Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com> Change-Id: I74cdcb2aa99b0162ba1c14059111f09d0bb534e3
* Remove sixwangzihao2020-12-171-7/+6
| | | | | | | | | | | | | | | | Remove six Replace the following items with Python 3 style code. - six.moves - six.StringIO - six.add_metaclass - six.string_types - six.binary_type - six.text_type - six.integer_types - six.PY3 - six.PY2 - six.iterkeys Change-Id: Id9f2076be1a6a2d99db5acb682df8bebe893de36
* When shortening span-ids, check if they're already shortShoham Peller2018-10-091-1/+4
| | | | | | | | If you're given an int, there's nothing to do, just return it Change-Id: I289dab8cfabaecf243fdc16b972695e83c83c3e4 Closes-Bug: 1795664 Signed-off-by: Shoham Peller <shohamp@gmail.com>
* OSprofiler with Jaeger Tracing as backendTovin Seven2018-05-291-0/+12
| | | | | | | | | | | | | | | | | | In this patch, I use Uber Jaeger as a tracer. Trace/span from OSprofiler will be sent to Jaeger. We can use Jaeger UI to view trace. A sample image of trace in Jaeger: https://tovin07.github.io/opentracing/jaeger-openstack-image-list.png Reference: - OpenTracing: http://opentracing.io/ - Uber Jager: https://www.jaegertracing.io/docs/ Depends-On: Iaac3ac3853867a67f7e386e762e0522076235daf Change-Id: I8f75af487f50d5e67a1321a4c951d2a0d85733a1 Implements: blueprint opentracing-compatible
* Use method constant_time_compare from oslo.utilsChangBo Guo(gcb)2016-10-271-27/+2
| | | | | | Oslo.utils provides same function constant_time_compare, so just use it. Change-Id: I790a25c4bc28a2c10ff6fb2a2f356b12df98ca6b
* Enable bandit in gateChangBo Guo(gcb)2016-03-031-1/+1
| | | | | | Bandit is a tool designed to find common security issues in Python code. and pep8 is the usual linter target. So enable it in pep8 target. Change-Id: Ie5e4350cde906c206fd5041e88983678eb37999e
* Update requirementsDina Belova2015-12-141-2/+4
| | | | Change-Id: Ia6bc1eedddeebb0aceb01d3c34b066d0b268f34d
* Various cleanupsBoris Pavlovic2015-06-241-6/+6
| | | | Change-Id: I311f694d2e2e92468d3345d0da3f550fffa560ee
* Merge "Allow N-keys (one should apply)"Jenkins2014-08-051-15/+37
|\
| * Allow N-keys (one should apply)Joshua Harlow2014-08-021-15/+37
| | | | | | | | | | | | | | | | | | During hmac validation allow there to be N keys and one of those keys must validate, if none do the old behavior continues to operate as is. This makes it easier to roll out new keys incrementally. Change-Id: I12d05329de5418baf6b1eb45fe85e8ce627c49ea
* | Remove dead codeBoris Pavlovic2014-08-011-4/+0
|/ | | | | | | 1) If we have docstring we don't need "pass" 2) check for isnstance of type is useless Change-Id: I87ed3a9d073f115cf47cb3419916549d8afd808b
* Merge "Use compare_digest or an equivalent when available"Jenkins2014-07-251-2/+27
|\
| * Use compare_digest or an equivalent when availableJoshua Harlow2014-07-191-2/+27
| | | | | | | | | | | | | | | | | | | | This avoids the same issue that caused a prior exploit in nova, we might as well avoid this by doing it correctly in the first place. See: https://bugs.launchpad.net/bugs/cve/2014-3517 Change-Id: Iea4b3bcded268de926f32f956383d03fd9f15d59
* | Fix wrong code duplication in utils.itersubclasses()Zhi Yan Liu2014-07-201-1/+0
|/ | | | Change-Id: Ic34be7cb10b5aba723394e06ddff69cb09fe698d Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
* Add notifier plugin based on Ceilometer0.2.0Boris Pavlovic2014-07-031-0/+18
| | | | | | | | | | | This drivers sends notifications using notifer API from oslo.messaging These notifications has speical topic "profiler", and they are collected by this Ceilometer notification pluging: https://review.openstack.org/#/c/100239/ Change-Id: I305fc7a13d3c052ffd22073d77ae4f12fae348ca
* Add base for notifier pluginsBoris Pavlovic2014-07-031-0/+21
| | | | | | | | | | OSprofiler will support notifers for different collectors. So add base for plugins. In next patch we will add osprofiler oslo.messaging based notifier Change-Id: Iad14c67f1e7cdbd0f4bcc64200fecf048316e385
* Make profiler.utils privateBoris Pavlovic2014-07-021-0/+91
Add "_" to utils module to show that they are private, and shouldn't be used outside of this lib Change-Id: Ic74321407f8790520e8c4ef932101c61a95fefbe