whatap-python 1.8.13rc2__tar.gz → 1.8.14rc1__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.8.13rc2 → whatap_python-1.8.14rc1}/PKG-INFO +1 -1
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/agent/linux/amd64/whatap_python +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/agent/linux/arm64/whatap_python +0 -0
- whatap_python-1.8.14rc1/whatap/build.py +4 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/database/psycopg3.py +20 -13
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/database/util.py +30 -4
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap_python.egg-info/PKG-INFO +1 -1
- whatap_python-1.8.13rc2/whatap/build.py +0 -4
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/README.md +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/setup.cfg +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/setup.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/LICENSE +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/README.rst +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/__main__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/agent/darwin/amd64/whatap_python +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/agent/darwin/arm64/whatap_python +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/bootstrap/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/bootstrap/sitecustomize.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/conf/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/conf/configuration.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/conf/configure.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/conf/license.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/control/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/counter/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/counter/counter_manager.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/counter/tasks/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/counter/tasks/llm_stat.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/counter/tasks/openfiledescriptor.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/io/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/io/data_inputx.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/io/data_outputx.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/net/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/net/async_sender.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/net/packet_enum.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/net/packet_type_enum.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/net/param_def.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/net/stackhelper.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/net/udp_session.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/net/udp_thread.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/pack/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/pack/logSinkPack.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/pack/pack.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/pack/pack_enum.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/pack/tagCountPack.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/scripts/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/amqp/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/amqp/kombu.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/amqp/pika.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/bottle.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/celery.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/cherrypy.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/django.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/django_asgi.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/django_py3.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/fastapi.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/flask.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/frappe.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/graphql.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/nameko.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/odoo.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/starlette.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/tornado.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/wsgi.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/database/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/database/cxoracle.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/database/mongo.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/database/mysql.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/database/neo4j.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/database/psycopg2.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/database/redis.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/database/sqlalchemy.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/database/sqlite3.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/email/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/email/smtp.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/httpc/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/httpc/django.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/httpc/httplib.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/httpc/httpx.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/httpc/requests.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/httpc/urllib3.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/llm/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/llm/openai.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/logging.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/plugin.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/standalone/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/standalone/multiple.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/standalone/single.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/simple_trace_context.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/trace_context.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/trace_context_manager.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/trace_import.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/trace_module_definition.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/bit_util.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/cardinality/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/cardinality/hyperloglog.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/cardinality/murmurhash.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/cardinality/registerset.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/compare_util.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/date_util.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/debug_util.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/escape_literal_sql.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/hash_util.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/hexa32.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/int_set.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/ip_util.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/keygen.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/linked_list.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/linked_map.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/metering_util.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/request_double_queue.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/request_queue.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/string_util.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/throttle_util.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/util/userid_util.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/__init__.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/blob_value.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/boolean_value.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/decimal_value.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/double_summary.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/double_value.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/float_array.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/float_value.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/int_array.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/ip4_value.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/list_value.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/long_array.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/long_summary.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/map_value.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/null_value.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/number_value.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/summary_value.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/text_array.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/text_hash_value.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/text_value.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/value.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/value/value_enum.py +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/whatap.conf +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap_python.egg-info/SOURCES.txt +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap_python.egg-info/dependency_links.txt +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap_python.egg-info/entry_points.txt +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap_python.egg-info/not-zip-safe +0 -0
- {whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap_python.egg-info/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -218,14 +218,17 @@ def _sync_wrapper(fn):
|
|
|
218
218
|
|
|
219
219
|
db_info = {"type": "postgresql"}
|
|
220
220
|
|
|
221
|
-
if args
|
|
221
|
+
if args:
|
|
222
222
|
conn_str = args[0]
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
223
|
+
if isinstance(args[0], str) and '=' in args[0]:
|
|
224
|
+
parsed_kwargs = dict(
|
|
225
|
+
x.split('=') for x in conn_str.split()
|
|
226
|
+
)
|
|
227
|
+
kwargs.update(parsed_kwargs)
|
|
228
|
+
db_info.update(kwargs)
|
|
229
|
+
else:
|
|
230
|
+
db_info.update({"db_con_stc": "completed"})
|
|
231
|
+
db_info.update({"db_str": args[0]})
|
|
229
232
|
|
|
230
233
|
connection = interceptor_db_con(fn, db_info, *args, **kwargs)
|
|
231
234
|
if hasattr(connection, '_is_wrapped'):
|
|
@@ -243,14 +246,18 @@ def _async_wrapper(fn):
|
|
|
243
246
|
|
|
244
247
|
db_info = {"type": "postgresql"}
|
|
245
248
|
|
|
246
|
-
if args
|
|
249
|
+
if args:
|
|
247
250
|
conn_str = args[0]
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
251
|
+
if isinstance(args[0], str) and '=' in args[0]:
|
|
252
|
+
parsed_kwargs = dict(
|
|
253
|
+
x.split('=') for x in conn_str.split()
|
|
254
|
+
)
|
|
255
|
+
kwargs.update(parsed_kwargs)
|
|
256
|
+
db_info.update(kwargs)
|
|
257
|
+
else:
|
|
258
|
+
db_info.update({"db_con_stc": "completed"})
|
|
259
|
+
db_info.update({"db_str": args[0]})
|
|
252
260
|
|
|
253
|
-
db_info.update(kwargs)
|
|
254
261
|
|
|
255
262
|
connection = await async_interceptor_db_con(fn, db_info, *args, **kwargs)
|
|
256
263
|
if hasattr(connection, '_is_wrapped'):
|
|
@@ -200,6 +200,10 @@ def interceptor_db_con(fn, db_info, *args, **kwargs):
|
|
|
200
200
|
text += "/"
|
|
201
201
|
text += db_info.get('user', '')
|
|
202
202
|
|
|
203
|
+
elif db_type == "postgresql":
|
|
204
|
+
if db_info.get('db_con_stc', '') == 'completed':
|
|
205
|
+
text = db_info.get('db_str', '')
|
|
206
|
+
|
|
203
207
|
else:
|
|
204
208
|
text = '{}://'.format(db_type)
|
|
205
209
|
text += kwargs.get('user', '')
|
|
@@ -222,6 +226,8 @@ def interceptor_db_con(fn, db_info, *args, **kwargs):
|
|
|
222
226
|
|
|
223
227
|
def interceptor_db_execute(fn, db_info, *args, **kwargs):
|
|
224
228
|
ctx = TraceContextManager.getLocalContext()
|
|
229
|
+
if not ctx:
|
|
230
|
+
return fn(*args, **kwargs)
|
|
225
231
|
# sendDebugProfile(ctx, 'interceptor_db_execute step -1')
|
|
226
232
|
self = args[0]
|
|
227
233
|
db_type = db_info.get('type')
|
|
@@ -289,10 +295,17 @@ def interceptor_db_execute(fn, db_info, *args, **kwargs):
|
|
|
289
295
|
except Exception as e:
|
|
290
296
|
interceptor_step_error(e)
|
|
291
297
|
finally:
|
|
292
|
-
|
|
298
|
+
try:
|
|
299
|
+
if hasattr(args[0], 'rowcount'):
|
|
300
|
+
count = args[0].rowcount
|
|
301
|
+
else:
|
|
302
|
+
count = -1
|
|
303
|
+
except AttributeError:
|
|
304
|
+
count = -1
|
|
305
|
+
|
|
306
|
+
datas = [ctx.lctx.get('dbc', ''), query, str(count)]
|
|
293
307
|
ctx.elapsed = DateUtil.nowSystem() - start_time
|
|
294
308
|
async_sender.send_packet(PacketTypeEnum.TX_SQL, ctx, datas)
|
|
295
|
-
count = self.rowcount
|
|
296
309
|
|
|
297
310
|
if (count is not None) and (count > -1):
|
|
298
311
|
desc = '{0}: {1}'.format('Fetch count', count)
|
|
@@ -351,6 +364,10 @@ async def async_interceptor_db_con(fn, db_info, *args, **kwargs):
|
|
|
351
364
|
|
|
352
365
|
if db_type == "sqlite":
|
|
353
366
|
text = "sqlite:"
|
|
367
|
+
|
|
368
|
+
elif db_type == "postgresql":
|
|
369
|
+
if db_info.get('db_con_stc', '') == 'completed':
|
|
370
|
+
text = db_info.get('db_str', '')
|
|
354
371
|
else:
|
|
355
372
|
text = '{}://'.format(db_type)
|
|
356
373
|
text += kwargs.get('user', '')
|
|
@@ -373,6 +390,8 @@ async def async_interceptor_db_con(fn, db_info, *args, **kwargs):
|
|
|
373
390
|
|
|
374
391
|
async def async_interceptor_db_execute(fn, db_info, *args, **kwargs):
|
|
375
392
|
ctx = TraceContextManager.getLocalContext()
|
|
393
|
+
if not ctx:
|
|
394
|
+
return await fn(*args, **kwargs)
|
|
376
395
|
self = args[0]
|
|
377
396
|
db_type = db_info.get('type')
|
|
378
397
|
query = None
|
|
@@ -445,10 +464,17 @@ async def async_interceptor_db_execute(fn, db_info, *args, **kwargs):
|
|
|
445
464
|
interceptor_step_error(e)
|
|
446
465
|
raise
|
|
447
466
|
finally:
|
|
448
|
-
|
|
467
|
+
try:
|
|
468
|
+
if hasattr(args[0], 'rowcount'):
|
|
469
|
+
count = args[0].rowcount
|
|
470
|
+
else:
|
|
471
|
+
count = -1
|
|
472
|
+
except AttributeError:
|
|
473
|
+
count = -1
|
|
474
|
+
|
|
475
|
+
datas = [ctx.lctx.get('dbc', ''), query, str(count)]
|
|
449
476
|
ctx.elapsed = DateUtil.nowSystem() - start_time
|
|
450
477
|
async_sender.send_packet(PacketTypeEnum.TX_SQL, ctx, datas)
|
|
451
|
-
count = self.rowcount
|
|
452
478
|
|
|
453
479
|
if (count is not None) and (count > -1):
|
|
454
480
|
desc = '{0}: {1}'.format('Fetch count', count)
|
|
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
|
{whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/counter/tasks/openfiledescriptor.py
RENAMED
|
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
|
{whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/cherrypy.py
RENAMED
|
File without changes
|
|
File without changes
|
{whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/django_asgi.py
RENAMED
|
File without changes
|
{whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/django_py3.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap/trace/mod/application/starlette.py
RENAMED
|
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
|
{whatap_python-1.8.13rc2 → whatap_python-1.8.14rc1}/whatap_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|