diff --git a/newrelic/config.py b/newrelic/config.py index df95db0290..22fb613844 100644 --- a/newrelic/config.py +++ b/newrelic/config.py @@ -2205,57 +2205,57 @@ def _process_module_builtin_defaults(): _process_module_definition("gluon.contrib.feedparser", "newrelic.hooks.external_feedparser") _process_module_definition("gluon.contrib.memcache.memcache", "newrelic.hooks.memcache_memcache") - _process_module_definition( - "graphene.types.schema", - "newrelic.hooks.framework_graphene", - "instrument_graphene_types_schema", - ) - - _process_module_definition( - "graphql.graphql", - "newrelic.hooks.framework_graphql", - "instrument_graphql", - ) + # _process_module_definition( + # "graphene.types.schema", + # "newrelic.hooks.framework_graphene", + # "instrument_graphene_types_schema", + # ) + + # _process_module_definition( + # "graphql.graphql", + # "newrelic.hooks.framework_graphql", + # "instrument_graphql", + # ) _process_module_definition( "graphql.execution.execute", "newrelic.hooks.framework_graphql", "instrument_graphql_execute", ) - _process_module_definition( - "graphql.execution.executor", - "newrelic.hooks.framework_graphql", - "instrument_graphql_execute", - ) - _process_module_definition( - "graphql.execution.middleware", - "newrelic.hooks.framework_graphql", - "instrument_graphql_execution_middleware", - ) - _process_module_definition( - "graphql.execution.utils", - "newrelic.hooks.framework_graphql", - "instrument_graphql_execution_utils", - ) - _process_module_definition( - "graphql.error.located_error", - "newrelic.hooks.framework_graphql", - "instrument_graphql_error_located_error", - ) - _process_module_definition( - "graphql.language.parser", - "newrelic.hooks.framework_graphql", - "instrument_graphql_parser", - ) - _process_module_definition( - "graphql.validation.validate", - "newrelic.hooks.framework_graphql", - "instrument_graphql_validate", - ) - _process_module_definition( - "graphql.validation.validation", - "newrelic.hooks.framework_graphql", - "instrument_graphql_validate", - ) + # _process_module_definition( + # "graphql.execution.executor", + # "newrelic.hooks.framework_graphql", + # "instrument_graphql_execute", + # ) + # _process_module_definition( + # "graphql.execution.middleware", + # "newrelic.hooks.framework_graphql", + # "instrument_graphql_execution_middleware", + # ) + # _process_module_definition( + # "graphql.execution.utils", + # "newrelic.hooks.framework_graphql", + # "instrument_graphql_execution_utils", + # ) + # _process_module_definition( + # "graphql.error.located_error", + # "newrelic.hooks.framework_graphql", + # "instrument_graphql_error_located_error", + # ) + # _process_module_definition( + # "graphql.language.parser", + # "newrelic.hooks.framework_graphql", + # "instrument_graphql_parser", + # ) + # _process_module_definition( + # "graphql.validation.validate", + # "newrelic.hooks.framework_graphql", + # "instrument_graphql_validate", + # ) + # _process_module_definition( + # "graphql.validation.validation", + # "newrelic.hooks.framework_graphql", + # "instrument_graphql_validate", + # ) _process_module_definition( "ariadne.asgi", diff --git a/newrelic/hooks/framework_graphql.py b/newrelic/hooks/framework_graphql.py index d261b2e9fd..025e86f9b9 100644 --- a/newrelic/hooks/framework_graphql.py +++ b/newrelic/hooks/framework_graphql.py @@ -462,21 +462,21 @@ def instrument_graphql_execute(module): if hasattr(module, "get_field_def"): wrap_function_wrapper(module, "get_field_def", wrap_get_field_def) if hasattr(module, "ExecutionContext"): - wrap_function_wrapper(module, "ExecutionContext.__init__", wrap_executor_context_init) + # wrap_function_wrapper(module, "ExecutionContext.__init__", wrap_executor_context_init) if hasattr(module.ExecutionContext, "resolve_field"): wrap_function_wrapper(module, "ExecutionContext.resolve_field", wrap_resolve_field) elif hasattr(module.ExecutionContext, "execute_field"): wrap_function_wrapper(module, "ExecutionContext.execute_field", wrap_resolve_field) - if hasattr(module.ExecutionContext, "execute_operation"): - wrap_function_wrapper(module, "ExecutionContext.execute_operation", wrap_execute_operation) + # if hasattr(module.ExecutionContext, "execute_operation"): + # wrap_function_wrapper(module, "ExecutionContext.execute_operation", wrap_execute_operation) - if hasattr(module, "resolve_field"): - wrap_function_wrapper(module, "resolve_field", wrap_resolve_field) + # if hasattr(module, "resolve_field"): + # wrap_function_wrapper(module, "resolve_field", wrap_resolve_field) - if hasattr(module, "execute_operation"): - wrap_function_wrapper(module, "execute_operation", wrap_execute_operation) + # if hasattr(module, "execute_operation"): + # wrap_function_wrapper(module, "execute_operation", wrap_execute_operation) def instrument_graphql_execution_utils(module):