whatap-python 1.6.8__tar.gz → 1.6.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of whatap-python might be problematic. Click here for more details.
- {whatap_python-1.6.8 → whatap_python-1.6.9}/PKG-INFO +1 -1
- whatap_python-1.6.9/whatap/build.py +4 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/conf/configure.py +1 -1
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/application_wsgi.py +1 -3
- whatap_python-1.6.9/whatap/trace/mod/database_cxoracle.py +28 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/trace_module_definition.py +3 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap_python.egg-info/PKG-INFO +1 -1
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap_python.egg-info/SOURCES.txt +1 -0
- whatap_python-1.6.8/whatap/build.py +0 -4
- {whatap_python-1.6.8 → whatap_python-1.6.9}/README.md +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/setup.cfg +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/setup.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/LICENSE +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/README.rst +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/__init__.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/__main__.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/agent/darwin/amd64/whatap_python +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/agent/darwin/arm64/whatap_python +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/agent/linux/amd64/whatap_python +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/agent/linux/arm64/whatap_python +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/bootstrap/__init__.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/bootstrap/sitecustomize.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/conf/__init__.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/conf/configuration.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/conf/license.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/control/__init__.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/io/__init__.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/io/data_inputx.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/io/data_outputx.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/net/__init__.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/net/async_sender.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/net/packet_enum.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/net/packet_type_enum.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/net/param_def.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/net/stackhelper.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/net/udp_session.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/net/udp_thread.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/pack/__init__.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/pack/logSinkPack.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/pack/pack.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/pack/pack_enum.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/scripts/__init__.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/__init__.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/__init__.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/amqp_kombu.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/amqp_pika.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/application_bottle.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/application_celery.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/application_cherrypy.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/application_django.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/application_django_py3.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/application_fastapi.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/application_flask.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/application_frappe.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/application_graphql.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/application_nameko.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/application_tornado.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/database_mongo.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/database_mysql.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/database_postgresql.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/database_redis.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/database_toolkit.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/email_smtp.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/httpc_django.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/httpc_httplib.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/httpc_requests.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/httpc_urllib3.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/logging.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/mod/plugin.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/simple_trace_context.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/trace_context.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/trace_context_manager.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/trace/trace_import.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/__init__.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/bit_util.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/cardinality/__init__.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/cardinality/hyperloglog.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/cardinality/murmurhash.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/cardinality/registerset.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/compare_util.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/date_util.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/debug_util.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/escape_literal_sql.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/hash_util.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/hexa32.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/int_set.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/ip_util.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/keygen.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/linked_list.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/linked_map.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/metering_util.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/request_double_queue.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/request_queue.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/string_util.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/throttle_util.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/util/userid_util.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/__init__.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/blob_value.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/boolean_value.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/decimal_value.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/double_summary.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/double_value.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/float_array.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/float_value.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/int_array.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/ip4_value.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/list_value.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/long_array.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/long_summary.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/map_value.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/null_value.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/number_value.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/summary_value.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/text_array.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/text_hash_value.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/text_value.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/value.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/value/value_enum.py +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap/whatap.conf +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap_python.egg-info/dependency_links.txt +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap_python.egg-info/entry_points.txt +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap_python.egg-info/not-zip-safe +0 -0
- {whatap_python-1.6.8 → whatap_python-1.6.9}/whatap_python.egg-info/top_level.txt +0 -0
|
@@ -15,7 +15,7 @@ class Configure(object):
|
|
|
15
15
|
observers = []
|
|
16
16
|
POD_NAME = os.environ.get("POD_NAME") if os.environ.get('POD_NAME') else os.environ.get("PODNAME") if os.environ.get("PODNAME") else ''
|
|
17
17
|
license = None
|
|
18
|
-
max_send_queue_size =
|
|
18
|
+
max_send_queue_size = 2000
|
|
19
19
|
|
|
20
20
|
@classmethod
|
|
21
21
|
def init(cls, display=True):
|
|
@@ -380,11 +380,10 @@ def interceptor_db_con(fn, db_type, *args, **kwargs):
|
|
|
380
380
|
if not kwargs:
|
|
381
381
|
kwargs = dict(
|
|
382
382
|
x.split('=') for x in re.sub(r'\s*=\s*', '=', args[0]).split())
|
|
383
|
-
ctx = TraceContextManager.getLocalContext()
|
|
384
383
|
text = '{}://'.format(db_type)
|
|
385
384
|
text += kwargs.get('user')
|
|
386
385
|
text += "@"
|
|
387
|
-
text += kwargs.get('host')
|
|
386
|
+
text += kwargs.get('host',kwargs.get('dsn','') )
|
|
388
387
|
text += '/'
|
|
389
388
|
text += kwargs.get('database', kwargs.get('db', kwargs.get('dbname', '')))
|
|
390
389
|
ctx.active_dbc = text
|
|
@@ -456,7 +455,6 @@ def interceptor_db_execute(fn, *args, **kwargs):
|
|
|
456
455
|
except Exception as e:
|
|
457
456
|
interceptor_step_error(e)
|
|
458
457
|
finally:
|
|
459
|
-
ctx = TraceContextManager.getLocalContext()
|
|
460
458
|
datas = [ctx.lctx.get('dbc', ''), query]
|
|
461
459
|
ctx.elapsed = DateUtil.nowSystem() - start_time
|
|
462
460
|
async_sender.send_packet(PacketTypeEnum.TX_SQL, ctx,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from whatap.trace import get_dict
|
|
2
|
+
from whatap.trace.mod.application_wsgi import trace_handler, \
|
|
3
|
+
interceptor_db_con, interceptor_db_execute, interceptor_db_close
|
|
4
|
+
|
|
5
|
+
def instrument_oracle_client(module):
|
|
6
|
+
def wrapper(fn):
|
|
7
|
+
@trace_handler(fn)
|
|
8
|
+
def trace(*args, **kwargs):
|
|
9
|
+
db_type = 'oracle'
|
|
10
|
+
callback = interceptor_db_con(fn, db_type, *args, **kwargs)
|
|
11
|
+
return callback
|
|
12
|
+
|
|
13
|
+
return trace
|
|
14
|
+
if hasattr(module, "connect"):
|
|
15
|
+
module.connect = wrapper(module.connect)
|
|
16
|
+
|
|
17
|
+
def wrapper(fn):
|
|
18
|
+
@trace_handler(fn)
|
|
19
|
+
def trace(*args, **kwargs):
|
|
20
|
+
callback = interceptor_db_close(fn, *args, **kwargs)
|
|
21
|
+
return callback
|
|
22
|
+
|
|
23
|
+
return trace
|
|
24
|
+
|
|
25
|
+
if hasattr(module, "Connection") and hasattr(module.Connection, "close"):
|
|
26
|
+
get_dict(module.Connection)['close'] = wrapper(
|
|
27
|
+
module.Connection.close)
|
|
28
|
+
|
|
@@ -55,6 +55,7 @@ whatap/trace/mod/application_graphql.py
|
|
|
55
55
|
whatap/trace/mod/application_nameko.py
|
|
56
56
|
whatap/trace/mod/application_tornado.py
|
|
57
57
|
whatap/trace/mod/application_wsgi.py
|
|
58
|
+
whatap/trace/mod/database_cxoracle.py
|
|
58
59
|
whatap/trace/mod/database_mongo.py
|
|
59
60
|
whatap/trace/mod/database_mysql.py
|
|
60
61
|
whatap/trace/mod/database_postgresql.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|