| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
The Jaeger driver counts on this message to be in the error description.
It fails if the message is not present
Closes-Bug: 1804218
Change-Id: I08f8328700049d9a0d791b12375fe9a6e8a3948a
|
| |
|
|
|
|
|
|
|
|
| |
Add handling of SQLAlchemy errors into OSProfiler. For errors
profiler will emit stop event with information about error
(Python exception).
Closes bug: #1706299
Change-Id: Ib9c1ea2ee3fb0450b8591ff1164f3e7153c5472a
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds function/sql results to trace info
New arg: hide_result (Boolean True/False)
- True (default): Hide function/sql result by default
- False: Show result in trace info
With database: add_tracing(sqlalchemy, engine, name, hide_result=True)
Demo: https://tovin07.github.io/murano/environment-show-with-results.html
Change-Id: I317dfa04e0109d46c1a5ca1e0a3523cfd8470d78
|
| |
|
|
|
|
|
|
|
| |
Lots of OpenStack projects are moving from direct usage of engine
to enginefacade module usage with its _TransactionContextManager.
Sessions for the context are created via .using() method of this
manager.
Change-Id: Ie517524a10713e09bb2491f2d76b651b20ecd4b6
|
| |
|
|
| |
Change-Id: I83aa97b3caadb053fddc76088d19ed5110035c67
|
| |
|
|
| |
Change-Id: Id335bfdf49ed88edd14e896a48c22b11113600c8
|
| |
|
|
|
|
|
|
|
|
| |
Use before_cursor_execute and after_cursor_execute instead of
before_execute and after_execute.
1) Migration with custom types will work now (even if tracing is enabled)
2) We don't need to render 2 times SQL expressesion => less overhead
Change-Id: I7c6b6909ce0f15a69ce5caad544e1351a647b472
|
| |
|
|
|
|
| |
It's easy for end users to find all public methdos when they are on top.
Change-Id: I0b80ea745d42dfec8523730a1f0410e2e8a1d388
|
| |
|
|
|
|
| |
Add "_" to private things, so user won't access them directly
Change-Id: Iab7d42c3b0a3f5ac3952b2be5c688ac939761701
|
| |
|
|
| |
Change-Id: Ieb9181a2e997e5e3ea02fd91d2b85aa54a4b83be
|
| |
|
|
|
|
| |
Engine that is used in migraiton shouldn't be traced.
So add built-in support for disable tracing.
This simplifies a lot code in OpenStack projects
|
| |
|
|
| |
Mostly this patch just covers by UTs sqlalcehmy module
|
| | |
|
| | |
|
|
|
To use it in your code you should add 2 sqlalchemy engine event listeners
import sqlalchemy
from sqlalchemy import event as sa_event
from osprofiler import sqlalchemy as sa_profiler
engine = sqlaclhemy.create_engine('your_db_host')
sa_profiler.add_tracing(sqlalchemy, engine, 'your_service')
|