whatap-python 1.5.4__tar.gz → 1.5.6__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.5.4 → whatap-python-1.5.6}/PKG-INFO +1 -1
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/__init__.py +4 -2
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/agent/linux/amd64/whatap_python +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/agent/linux/arm64/whatap_python +0 -0
- whatap-python-1.5.6/whatap/build.py +4 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/application_wsgi.py +1 -2
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/database_toolkit.py +3 -3
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap_python.egg-info/PKG-INFO +1 -1
- whatap-python-1.5.4/whatap/build.py +0 -4
- {whatap-python-1.5.4 → whatap-python-1.5.6}/README.md +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/setup.cfg +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/setup.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/LICENSE +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/README.rst +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/__main__.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/agent/darwin/amd64/whatap_python +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/agent/darwin/arm64/whatap_python +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/bootstrap/__init__.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/bootstrap/sitecustomize.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/conf/__init__.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/conf/configuration.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/conf/configure.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/conf/license.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/control/__init__.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/io/__init__.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/io/data_inputx.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/io/data_outputx.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/net/__init__.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/net/async_sender.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/net/packet_enum.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/net/packet_type_enum.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/net/param_def.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/net/stackhelper.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/net/udp_session.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/net/udp_thread.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/pack/__init__.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/pack/logSinkPack.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/pack/pack.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/pack/pack_enum.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/scripts/__init__.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/__init__.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/__init__.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/amqp_kombu.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/amqp_pika.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/application_bottle.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/application_celery.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/application_cherrypy.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/application_django.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/application_django_py3.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/application_fastapi.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/application_flask.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/application_frappe.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/application_graphql.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/application_nameko.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/application_tornado.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/database_mongo.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/database_mysql.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/database_postgresql.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/database_redis.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/email_smtp.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/httpc_django.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/httpc_httplib.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/httpc_requests.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/httpc_urllib3.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/logging.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/mod/plugin.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/trace_context.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/trace_context_manager.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/trace_import.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/trace/trace_module_definition.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/__init__.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/bit_util.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/cardinality/__init__.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/cardinality/hyperloglog.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/cardinality/murmurhash.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/cardinality/registerset.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/compare_util.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/date_util.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/debug_util.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/escape_literal_sql.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/hash_util.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/hexa32.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/int_set.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/ip_util.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/keygen.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/linked_list.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/linked_map.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/metering_util.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/request_double_queue.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/request_queue.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/string_util.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/throttle_util.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/util/userid_util.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/__init__.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/blob_value.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/boolean_value.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/decimal_value.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/double_summary.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/double_value.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/float_array.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/float_value.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/int_array.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/ip4_value.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/list_value.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/long_array.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/long_summary.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/map_value.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/null_value.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/number_value.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/summary_value.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/text_array.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/text_hash_value.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/text_value.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/value.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/value/value_enum.py +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap/whatap.conf +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap_python.egg-info/SOURCES.txt +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap_python.egg-info/dependency_links.txt +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap_python.egg-info/entry_points.txt +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap_python.egg-info/not-zip-safe +0 -0
- {whatap-python-1.5.4 → whatap-python-1.5.6}/whatap_python.egg-info/top_level.txt +0 -0
|
@@ -51,7 +51,9 @@ def whatap_print(*args):
|
|
|
51
51
|
if isFrappeCommands:
|
|
52
52
|
logging.info(*args)
|
|
53
53
|
else:
|
|
54
|
-
|
|
54
|
+
if len(args) > 0:
|
|
55
|
+
message = " ".join(args)
|
|
56
|
+
print(message)
|
|
55
57
|
|
|
56
58
|
class Logger(object):
|
|
57
59
|
def __init__(self):
|
|
@@ -370,7 +372,7 @@ def go(batch=False, opts={}):
|
|
|
370
372
|
process = subprocess.Popen(['./{0}'.format(AGENT_NAME), '-t', '3', '-d', '1'],
|
|
371
373
|
cwd=home_path,env=newenv, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
372
374
|
stdouts, errs = process.communicate()
|
|
373
|
-
whatap_print("executed golang module ", stdouts, errs)
|
|
375
|
+
whatap_print("executed golang module ", str(stdouts,"utf8"), str(errs, "utf8"))
|
|
374
376
|
except Exception as e:
|
|
375
377
|
import traceback
|
|
376
378
|
traceback.print_exc()
|
|
Binary file
|
|
Binary file
|
|
@@ -375,7 +375,6 @@ def interceptor_db_con(fn, db_type, *args, **kwargs):
|
|
|
375
375
|
try:
|
|
376
376
|
callback = fn(*args, **kwargs)
|
|
377
377
|
finally:
|
|
378
|
-
|
|
379
378
|
ctx.db_opening = False
|
|
380
379
|
|
|
381
380
|
if not kwargs:
|
|
@@ -387,7 +386,7 @@ def interceptor_db_con(fn, db_type, *args, **kwargs):
|
|
|
387
386
|
text += "@"
|
|
388
387
|
text += kwargs.get('host')
|
|
389
388
|
text += '/'
|
|
390
|
-
text += kwargs.get('database', kwargs.get('db', kwargs.get('dbname')))
|
|
389
|
+
text += kwargs.get('database', kwargs.get('db', kwargs.get('dbname', '')))
|
|
391
390
|
ctx.active_dbc = text
|
|
392
391
|
ctx.lctx['dbc'] = text
|
|
393
392
|
|
|
@@ -3,6 +3,7 @@ import whatap.net.async_sender as async_sender
|
|
|
3
3
|
from whatap.trace.mod.application_wsgi import trace_handler, interceptor_db_execute, interceptor_step_error, sendDebugProfile
|
|
4
4
|
from whatap.util.date_util import DateUtil
|
|
5
5
|
from whatap.trace.trace_context_manager import TraceContextManager
|
|
6
|
+
import sys
|
|
6
7
|
from functools import wraps
|
|
7
8
|
|
|
8
9
|
def instrument_sqlalchemy(module):
|
|
@@ -25,8 +26,8 @@ def instrument_sqlalchemy(module):
|
|
|
25
26
|
return callback
|
|
26
27
|
|
|
27
28
|
return trace
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
if sys.modules.get("flask_sqlalchemy") is None:
|
|
30
|
+
module.Session.get_bind = wrapper(module.Session.get_bind)
|
|
30
31
|
|
|
31
32
|
def addQuote(arg_dict):
|
|
32
33
|
quoted_dict = dict()
|
|
@@ -60,7 +61,6 @@ def instrument_sqlalchemy_engine(module):
|
|
|
60
61
|
query = args[2] % addQuote(args[3])
|
|
61
62
|
except Exception as e:
|
|
62
63
|
pass
|
|
63
|
-
print(f"query:{query}")
|
|
64
64
|
# print('instrument_sqlalchemy_engine 2:', query)
|
|
65
65
|
try:
|
|
66
66
|
if not query:
|
|
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
|