whatap-python 1.5.9__tar.gz → 1.6.1__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.9 → whatap-python-1.6.1}/PKG-INFO +1 -1
- whatap-python-1.6.1/whatap/build.py +4 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/net/udp_thread.py +2 -1
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/application_fastapi.py +11 -9
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap_python.egg-info/PKG-INFO +1 -1
- whatap-python-1.5.9/whatap/build.py +0 -4
- {whatap-python-1.5.9 → whatap-python-1.6.1}/README.md +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/setup.cfg +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/setup.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/LICENSE +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/README.rst +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/__init__.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/__main__.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/agent/darwin/amd64/whatap_python +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/agent/darwin/arm64/whatap_python +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/agent/linux/amd64/whatap_python +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/agent/linux/arm64/whatap_python +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/bootstrap/__init__.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/bootstrap/sitecustomize.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/conf/__init__.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/conf/configuration.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/conf/configure.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/conf/license.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/control/__init__.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/io/__init__.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/io/data_inputx.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/io/data_outputx.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/net/__init__.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/net/async_sender.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/net/packet_enum.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/net/packet_type_enum.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/net/param_def.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/net/stackhelper.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/net/udp_session.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/pack/__init__.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/pack/logSinkPack.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/pack/pack.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/pack/pack_enum.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/scripts/__init__.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/__init__.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/__init__.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/amqp_kombu.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/amqp_pika.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/application_bottle.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/application_celery.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/application_cherrypy.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/application_django.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/application_django_py3.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/application_flask.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/application_frappe.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/application_graphql.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/application_nameko.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/application_tornado.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/application_wsgi.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/database_mongo.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/database_mysql.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/database_postgresql.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/database_redis.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/database_toolkit.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/email_smtp.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/httpc_django.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/httpc_httplib.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/httpc_requests.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/httpc_urllib3.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/logging.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/mod/plugin.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/simple_trace_context.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/trace_context.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/trace_context_manager.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/trace_import.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/trace/trace_module_definition.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/__init__.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/bit_util.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/cardinality/__init__.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/cardinality/hyperloglog.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/cardinality/murmurhash.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/cardinality/registerset.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/compare_util.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/date_util.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/debug_util.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/escape_literal_sql.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/hash_util.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/hexa32.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/int_set.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/ip_util.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/keygen.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/linked_list.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/linked_map.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/metering_util.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/request_double_queue.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/request_queue.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/string_util.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/throttle_util.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/util/userid_util.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/__init__.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/blob_value.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/boolean_value.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/decimal_value.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/double_summary.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/double_value.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/float_array.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/float_value.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/int_array.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/ip4_value.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/list_value.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/long_array.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/long_summary.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/map_value.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/null_value.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/number_value.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/summary_value.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/text_array.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/text_hash_value.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/text_value.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/value.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/value/value_enum.py +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap/whatap.conf +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap_python.egg-info/SOURCES.txt +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap_python.egg-info/dependency_links.txt +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap_python.egg-info/entry_points.txt +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap_python.egg-info/not-zip-safe +0 -0
- {whatap-python-1.5.9 → whatap-python-1.6.1}/whatap_python.egg-info/top_level.txt +0 -0
|
@@ -24,7 +24,8 @@ def startWhatapThread():
|
|
|
24
24
|
job()
|
|
25
25
|
time.sleep(0)
|
|
26
26
|
except Exception as e:
|
|
27
|
-
|
|
27
|
+
if conf.debug:
|
|
28
|
+
logging.debug(e, extra={'id': 'WA914'}, exc_info=True)
|
|
28
29
|
time.sleep(0.05)
|
|
29
30
|
|
|
30
31
|
t = threading.Thread(target=__whatap_jobs)
|
|
@@ -375,15 +375,17 @@ def instrument_util(module):
|
|
|
375
375
|
setattr(dependant, _WHATAP_DICT, whatap_dict)
|
|
376
376
|
if _REQUEST in kwargs:
|
|
377
377
|
request = kwargs[_REQUEST]
|
|
378
|
-
if request
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
whatap_dict
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
378
|
+
if request:
|
|
379
|
+
if request.client is not None:
|
|
380
|
+
remoteAddr = request.client.host
|
|
381
|
+
else:
|
|
382
|
+
remoteAddr = request.headers.get('x-forwarded-for')
|
|
383
|
+
whatap_dict.update({
|
|
384
|
+
'remoteAddr': remoteAddr,
|
|
385
|
+
'headers': copy(request.headers),
|
|
386
|
+
'cookies': copy(request.cookies),
|
|
387
|
+
'query_params': copy(request.query_params),
|
|
388
|
+
})
|
|
387
389
|
ret = await fn(*args, **kwargs)
|
|
388
390
|
if len(ret) >= 4:
|
|
389
391
|
response = ret[3]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|