whatap-python 1.6.7__tar.gz → 1.6.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.
Potentially problematic release.
This version of whatap-python might be problematic. Click here for more details.
- {whatap_python-1.6.7 → whatap_python-1.6.8}/PKG-INFO +1 -1
- whatap_python-1.6.8/whatap/build.py +4 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/application_graphql.py +35 -13
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/trace_module_definition.py +5 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap_python.egg-info/PKG-INFO +1 -1
- whatap_python-1.6.7/whatap/build.py +0 -4
- {whatap_python-1.6.7 → whatap_python-1.6.8}/README.md +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/setup.cfg +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/setup.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/LICENSE +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/README.rst +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/__init__.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/__main__.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/agent/darwin/amd64/whatap_python +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/agent/darwin/arm64/whatap_python +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/agent/linux/amd64/whatap_python +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/agent/linux/arm64/whatap_python +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/bootstrap/__init__.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/bootstrap/sitecustomize.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/conf/__init__.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/conf/configuration.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/conf/configure.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/conf/license.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/control/__init__.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/io/__init__.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/io/data_inputx.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/io/data_outputx.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/net/__init__.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/net/async_sender.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/net/packet_enum.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/net/packet_type_enum.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/net/param_def.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/net/stackhelper.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/net/udp_session.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/net/udp_thread.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/pack/__init__.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/pack/logSinkPack.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/pack/pack.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/pack/pack_enum.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/scripts/__init__.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/__init__.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/__init__.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/amqp_kombu.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/amqp_pika.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/application_bottle.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/application_celery.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/application_cherrypy.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/application_django.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/application_django_py3.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/application_fastapi.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/application_flask.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/application_frappe.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/application_nameko.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/application_tornado.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/application_wsgi.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/database_mongo.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/database_mysql.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/database_postgresql.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/database_redis.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/database_toolkit.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/email_smtp.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/httpc_django.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/httpc_httplib.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/httpc_requests.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/httpc_urllib3.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/logging.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/mod/plugin.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/simple_trace_context.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/trace_context.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/trace_context_manager.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/trace/trace_import.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/__init__.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/bit_util.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/cardinality/__init__.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/cardinality/hyperloglog.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/cardinality/murmurhash.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/cardinality/registerset.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/compare_util.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/date_util.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/debug_util.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/escape_literal_sql.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/hash_util.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/hexa32.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/int_set.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/ip_util.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/keygen.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/linked_list.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/linked_map.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/metering_util.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/request_double_queue.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/request_queue.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/string_util.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/throttle_util.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/util/userid_util.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/__init__.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/blob_value.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/boolean_value.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/decimal_value.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/double_summary.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/double_value.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/float_array.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/float_value.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/int_array.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/ip4_value.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/list_value.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/long_array.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/long_summary.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/map_value.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/null_value.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/number_value.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/summary_value.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/text_array.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/text_hash_value.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/text_value.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/value.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/value/value_enum.py +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap/whatap.conf +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap_python.egg-info/SOURCES.txt +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap_python.egg-info/dependency_links.txt +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap_python.egg-info/entry_points.txt +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap_python.egg-info/not-zip-safe +0 -0
- {whatap_python-1.6.7 → whatap_python-1.6.8}/whatap_python.egg-info/top_level.txt +0 -0
|
@@ -6,23 +6,45 @@ from whatap.trace.trace_context_manager import TraceContextManager
|
|
|
6
6
|
import whatap.net.async_sender as async_sender
|
|
7
7
|
from whatap.net.packet_type_enum import PacketTypeEnum
|
|
8
8
|
from whatap.util.date_util import DateUtil
|
|
9
|
-
import
|
|
9
|
+
import pkg_resources
|
|
10
|
+
from graphql.language.ast import OperationDefinitionNode
|
|
11
|
+
|
|
10
12
|
|
|
11
13
|
def parseServiceName(graphql_doc):
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
# GraphQL-core 버전 확인
|
|
15
|
+
graphql_core_version = pkg_resources.get_distribution("graphql-core").version
|
|
16
|
+
|
|
17
|
+
# GraphQL-core 3.x 이상 버전일 경우
|
|
18
|
+
if graphql_core_version.startswith("3") or graphql_core_version.startswith("4"):
|
|
19
|
+
try:
|
|
20
|
+
# OperationDefinitionNode 타입의 노드 필터링 (3.x 이상 버전 로직)
|
|
21
|
+
op_def = [
|
|
22
|
+
i for i in graphql_doc.definitions
|
|
23
|
+
if isinstance(i, OperationDefinitionNode)
|
|
24
|
+
][0]
|
|
25
|
+
except (IndexError, KeyError):
|
|
26
|
+
return "GraphQL unknown operation"
|
|
27
|
+
|
|
28
|
+
# operation의 타입이 OperationType Enum인 경우
|
|
29
|
+
op = op_def.operation.value # Enum 값을 문자열로 변환
|
|
30
|
+
else:
|
|
31
|
+
try:
|
|
32
|
+
# 이전 버전 로직 (OperationDefinition 사용)
|
|
33
|
+
op_def = [
|
|
34
|
+
i for i in graphql_doc.definitions
|
|
35
|
+
if type(i).__name__ == "OperationDefinition"
|
|
36
|
+
][0]
|
|
37
|
+
except (IndexError, KeyError):
|
|
38
|
+
return "GraphQL unknown operation"
|
|
39
|
+
|
|
40
|
+
# operation의 타입이 문자열인 경우
|
|
41
|
+
op = op_def.operation # 문자열 그대로 사용
|
|
19
42
|
|
|
20
|
-
op = op_def.operation
|
|
21
43
|
name = op_def.name
|
|
22
|
-
fields = op_def.selection_set.selections
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
44
|
+
fields = op_def.selection_set.selections if op_def.selection_set else []
|
|
45
|
+
|
|
46
|
+
return "/GraphQL %s %s" % (op.upper(), name.value if name else "+".join([f.name.value for f in fields]))
|
|
47
|
+
|
|
26
48
|
|
|
27
49
|
def intercept_execute(fn, *args, **kwargs):
|
|
28
50
|
ctx = TraceContextManager.getLocalContext()
|
|
@@ -99,6 +99,11 @@ DEFINITION = {
|
|
|
99
99
|
],
|
|
100
100
|
'application_graphql':[
|
|
101
101
|
#('graphql','instrument_graphql'),
|
|
102
|
+
|
|
103
|
+
#graphen-core 3.x~
|
|
104
|
+
('graphql.execution.execute','instrument_graphql'),
|
|
105
|
+
|
|
106
|
+
#graphen-core 2.x
|
|
102
107
|
('graphql.execution.executor','instrument_graphql'),
|
|
103
108
|
],
|
|
104
109
|
'database_mongo':[
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|