@@ -51,28 +51,6 @@ def ignore_graphql_duplicate_exception(exc, val, tb):
5151 return None # Follow original exception matching rules
5252
5353
54- def ignore_graphql_duplicate_exception (exc , val , tb ):
55- from graphql .error import GraphQLError
56-
57- if isinstance (val , GraphQLError ):
58- transaction = current_transaction ()
59-
60- # Check that we have not recorded this exception
61- # previously for this transaction due to multiple
62- # error traces triggering. This happens if an exception
63- # is reraised by GraphQL as a new GraphQLError type
64- # after the original exception has already been recorded.
65-
66- if transaction and hasattr (val , "original_error" ):
67- _ , _ , fullnames , message = parse_exc_info ((None , val .original_error , None ))
68- fullname = fullnames [0 ]
69- for error in transaction ._errors :
70- if error .type == fullname and error .message == message :
71- return True
72-
73- return None # Follow original exception matching rules
74-
75-
7654def wrap_executor_context_init (wrapped , instance , args , kwargs ):
7755 result = wrapped (* args , ** kwargs )
7856
@@ -288,6 +266,11 @@ def wrap_graphql_impl(wrapped, instance, args, kwargs):
288266 if not transaction :
289267 return wrapped (* args , ** kwargs )
290268
269+ version = graphql_version ()
270+ framework_version = '.' .join (map (str , version ))
271+
272+ transaction .add_framework_info (name = 'GraphQL' , version = framework_version )
273+
291274 if graphql_version () <= (3 , 0 , 0 ):
292275 bind_query = bind_execute_graphql_query
293276 else :
0 commit comments