whatap-python 1.7.7__tar.gz → 1.7.8__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.
- {whatap_python-1.7.7 → whatap_python-1.7.8}/PKG-INFO +1 -1
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/agent/darwin/amd64/whatap_python +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/agent/darwin/arm64/whatap_python +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/agent/linux/amd64/whatap_python +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/agent/linux/arm64/whatap_python +0 -0
- whatap_python-1.7.8/whatap/build.py +4 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/net/packet_enum.py +1 -1
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/application_wsgi.py +10 -7
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/database_cxoracle.py +2 -2
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/database_mysql.py +4 -2
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/database_postgresql.py +2 -1
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap_python.egg-info/PKG-INFO +1 -1
- whatap_python-1.7.7/whatap/build.py +0 -4
- {whatap_python-1.7.7 → whatap_python-1.7.8}/README.md +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/setup.cfg +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/setup.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/LICENSE +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/README.rst +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/__main__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/bootstrap/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/bootstrap/sitecustomize.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/conf/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/conf/configuration.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/conf/configure.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/conf/license.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/control/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/counter/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/counter/counter_manager.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/counter/tasks/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/counter/tasks/openfiledescriptor.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/io/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/io/data_inputx.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/io/data_outputx.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/net/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/net/async_sender.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/net/packet_type_enum.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/net/param_def.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/net/stackhelper.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/net/udp_session.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/net/udp_thread.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/pack/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/pack/logSinkPack.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/pack/pack.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/pack/pack_enum.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/pack/tagCountPack.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/scripts/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/amqp_kombu.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/amqp_pika.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/application_bottle.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/application_celery.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/application_cherrypy.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/application_django.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/application_django_asgi.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/application_django_py3.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/application_fastapi.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/application_flask.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/application_frappe.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/application_graphql.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/application_nameko.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/application_tornado.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/database_mongo.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/database_redis.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/database_toolkit.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/email_smtp.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/httpc_django.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/httpc_httplib.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/httpc_requests.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/httpc_urllib3.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/logging.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/mod/plugin.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/simple_trace_context.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/trace_context.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/trace_context_manager.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/trace_import.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/trace/trace_module_definition.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/bit_util.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/cardinality/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/cardinality/hyperloglog.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/cardinality/murmurhash.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/cardinality/registerset.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/compare_util.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/date_util.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/debug_util.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/escape_literal_sql.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/hash_util.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/hexa32.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/int_set.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/ip_util.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/keygen.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/linked_list.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/linked_map.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/metering_util.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/request_double_queue.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/request_queue.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/string_util.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/throttle_util.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/util/userid_util.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/__init__.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/blob_value.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/boolean_value.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/decimal_value.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/double_summary.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/double_value.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/float_array.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/float_value.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/int_array.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/ip4_value.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/list_value.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/long_array.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/long_summary.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/map_value.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/null_value.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/number_value.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/summary_value.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/text_array.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/text_hash_value.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/text_value.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/value.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/value/value_enum.py +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap/whatap.conf +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap_python.egg-info/SOURCES.txt +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap_python.egg-info/dependency_links.txt +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap_python.egg-info/entry_points.txt +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap_python.egg-info/not-zip-safe +0 -0
- {whatap_python-1.7.7 → whatap_python-1.7.8}/whatap_python.egg-info/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -96,7 +96,8 @@ def start_interceptor(ctx):
|
|
|
96
96
|
ctx.userAgentString,
|
|
97
97
|
ctx.referer,
|
|
98
98
|
ctx.userid,
|
|
99
|
-
ctx.isStaticContents
|
|
99
|
+
ctx.isStaticContents,
|
|
100
|
+
ctx.http_method
|
|
100
101
|
]
|
|
101
102
|
# print("start_interceptor txid:", ctx.id)
|
|
102
103
|
async_sender.send_packet(PacketTypeEnum.TX_START, ctx, datas)
|
|
@@ -121,7 +122,7 @@ def end_interceptor(thread_id=None, ctx=None):
|
|
|
121
122
|
ctx.start_time = start_time
|
|
122
123
|
|
|
123
124
|
datas = [ctx.host, ctx.service_name, ctx.mtid, ctx.mdepth, ctx.mcaller_txid,
|
|
124
|
-
ctx.mcaller_pcode, ctx.mcaller_spec, str(ctx.mcaller_url_hash), ctx.mcaller_poid]
|
|
125
|
+
ctx.mcaller_pcode, ctx.mcaller_spec, str(ctx.mcaller_url_hash), ctx.mcaller_poid,ctx.status]
|
|
125
126
|
ctx.elapsed = DateUtil.nowSystem() - start_time
|
|
126
127
|
|
|
127
128
|
async_sender.send_packet(PacketTypeEnum.TX_END, ctx, datas)
|
|
@@ -149,7 +150,7 @@ def interceptor(rn_environ, *args, **kwargs):
|
|
|
149
150
|
ctx = TraceContext()
|
|
150
151
|
ctx.host = environ.get('HTTP_HOST', '').split(':')[0]
|
|
151
152
|
ctx.service_name = parseServiceName(environ)
|
|
152
|
-
|
|
153
|
+
ctx.http_method = environ.get('REQUEST_METHOD', '')
|
|
153
154
|
ctx.remoteIp = userid_util.getRemoteAddr(args)
|
|
154
155
|
|
|
155
156
|
ctx.userAgentString = environ.get('HTTP_USER_AGENT', '')
|
|
@@ -206,8 +207,10 @@ def interceptor(rn_environ, *args, **kwargs):
|
|
|
206
207
|
|
|
207
208
|
if getattr(callback, 'status_code', None):
|
|
208
209
|
status_code = callback.status_code
|
|
209
|
-
|
|
210
|
-
|
|
210
|
+
|
|
211
|
+
if (status_code >= 400):
|
|
212
|
+
errors = [callback.__class__.__name__, callback.reason_phrase]
|
|
213
|
+
interceptor_error(status_code, errors, ctx=ctx)
|
|
211
214
|
|
|
212
215
|
if conf.profile_http_header_enabled:
|
|
213
216
|
keys = []
|
|
@@ -234,8 +237,8 @@ def interceptor_error(status_code, errors, ctx=None):
|
|
|
234
237
|
ctx = TraceContextManager.getLocalContext()
|
|
235
238
|
if not ctx:
|
|
236
239
|
return
|
|
237
|
-
ctx.status =
|
|
238
|
-
if
|
|
240
|
+
ctx.status = status_code
|
|
241
|
+
if status_code >= 400 and not ctx.error:
|
|
239
242
|
ctx.error = 1
|
|
240
243
|
|
|
241
244
|
error = ''
|
|
@@ -11,8 +11,8 @@ def instrument_oracle_client(module):
|
|
|
11
11
|
@trace_handler(fn)
|
|
12
12
|
def trace(*args, **kwargs):
|
|
13
13
|
global db_info
|
|
14
|
-
db_info = {'type': 'oracle'}
|
|
15
|
-
|
|
14
|
+
db_info = {'type': 'oracle'}
|
|
15
|
+
db_info.update(kwargs)
|
|
16
16
|
callback = interceptor_db_con(fn, db_info, *args, **kwargs)
|
|
17
17
|
return callback
|
|
18
18
|
|
|
@@ -9,7 +9,8 @@ def instrument_MySQLdb(module):
|
|
|
9
9
|
@trace_handler(fn)
|
|
10
10
|
def trace(*args, **kwargs):
|
|
11
11
|
global db_info
|
|
12
|
-
db_info = {'type': 'mysql'}
|
|
12
|
+
db_info = {'type': 'mysql'}
|
|
13
|
+
db_info.update(kwargs)
|
|
13
14
|
callback = interceptor_db_con(fn, db_info, *args, **kwargs)
|
|
14
15
|
return callback
|
|
15
16
|
|
|
@@ -49,7 +50,8 @@ def instrument_pymysql(module):
|
|
|
49
50
|
@trace_handler(fn)
|
|
50
51
|
def trace(*args, **kwargs):
|
|
51
52
|
global db_info
|
|
52
|
-
db_info = {'type': 'mysql'}
|
|
53
|
+
db_info = {'type': 'mysql'}
|
|
54
|
+
db_info.update(kwargs)
|
|
53
55
|
callback = interceptor_db_con(fn, db_info, *args, **kwargs)
|
|
54
56
|
return callback
|
|
55
57
|
|
|
@@ -9,7 +9,8 @@ def instrument_psycopg2(module):
|
|
|
9
9
|
@trace_handler(fn)
|
|
10
10
|
def trace(*args, **kwargs):
|
|
11
11
|
global db_info
|
|
12
|
-
db_info = {'type': 'postgresql'}
|
|
12
|
+
db_info = {'type': 'postgresql'}
|
|
13
|
+
db_info.update(kwargs)
|
|
13
14
|
callback = interceptor_db_con(fn, db_info, *args, **kwargs)
|
|
14
15
|
return callback
|
|
15
16
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|