def instrument_aiohttp_web_urldispatcher(module): wrap_function_wrapper(module, 'ResourceRoute.__init__', _nr_aiohttp_wrap_view_) wrap_function_wrapper(module, 'SystemRoute._handler', _nr_aiohttp_wrap_system_route_)
def instrument_redis_connection(module): wrap_function_wrapper(module, 'Connection.send_command', _nr_Connection_send_command_wrapper_)
def instrument_starlette_concurrency(module): wrap_function_wrapper(module, "run_in_threadpool", wrap_run_in_threadpool)
def instrument_aiohttp_client(module): wrap_function_wrapper(module, 'ClientSession._request', _nr_aiohttp_request_wrapper_)
def instrument_starlette_routing(module): wrap_function_wrapper(module, "Route.__init__", wrap_route)
def instrument_starlette_middleware_exceptions(module): wrap_function_wrapper(module, "ExceptionMiddleware.__call__", error_middleware_wrapper) wrap_function_wrapper(module, "ExceptionMiddleware.http_exception", wrap_exception_handler) wrap_function_wrapper(module, "ExceptionMiddleware.add_exception_handler", wrap_add_exception_handler)
def instrument_rest_framework_views(module): wrap_function_wrapper(module, 'APIView.dispatch', _nr_wrapper_APIView_dispatch_)
def instrument_django_gzip_middleware(module): wrap_function_wrapper(module, 'GZipMiddleware.process_response', _nr_wrapper_GZipMiddleware_process_response_)
def instrument_asgiref_sync(module): wrap_function_wrapper(module, "SyncToAsync.thread_handler", thread_handler_wrapper) wrap_function_wrapper(module, "AsyncToSync.main_wrap", main_wrap_wrapper)
def instrument_fastapi_routing(module): if hasattr(module, "run_endpoint_function"): wrap_function_wrapper(module, "run_endpoint_function", wrap_run_endpoint_function)
def instrument_logging(module): if hasattr(module, "Logger"): if hasattr(module.Logger, "callHandlers"): wrap_function_wrapper(module, "Logger.callHandlers", wrap_callHandlers)
def instrument_tornado_httputil(module): wrap_function_wrapper(module, '_NormalizedHeaderCache.__missing__', _nr_wrapper__NormalizedHeaderCache___missing__)
def instrument_concurrent(module): # This is for instrumenting both tornado futures and python native futures wrap_function_wrapper(module, 'Future.add_done_callback', _nr_wrapper_Future_add_done_callback)
def instrument_psycopg2__range(module): if hasattr(module, 'register_type'): if not isinstance(module.register_type, ObjectProxy): wrap_function_wrapper(module, 'register_type', wrapper_psycopg2_register_type)
def instrument_rest_framework_decorators(module): wrap_function_wrapper(module, 'api_view', _nr_wrapper_api_view_)
def instrument_django_core_management_base(module): wrap_function_wrapper(module, 'BaseCommand.__init__', _nr_wrapper_BaseCommand___init___) wrap_function_wrapper(module, 'BaseCommand.run_from_argv', _nr_wrapper_BaseCommand_run_from_argv_)
def instrument_tornado_http1connection(module): wrap_function_wrapper(module, 'HTTP1Connection.write_headers', _nr_wrapper_HTTP1Connection_write_headers_)
def instrument_tornado_httputil(module): wrap_function_wrapper(module, 'HTTPServerRequest.__init__', _nr_wrapper_HTTPServerRequest__init__) wrap_function_wrapper(module, '_NormalizedHeaderCache.__missing__', _nr_wrapper__NormalizedHeaderCache___missing__)
def instrument_asyncpg_protocol(module): wrap_function_wrapper(module, "Protocol", proxy_protocol)
def instrument_starlette_requests(module): wrap_function_wrapper(module, "Request.__init__", wrap_request)
def instrument_asyncpg_connect_utils(module): wrap_function_wrapper(module, "_connect_addr", wrap_connect)
def instrument_starlette_background_task(module): wrap_function_wrapper(module, "BackgroundTask.__call__", wrap_background_method)
def instrument_falcon_routing_util(module): if hasattr(module, 'map_http_methods'): wrap_function_wrapper(module, 'map_http_methods', wrap_responder) elif hasattr(module, 'create_http_method_map'): wrap_function_wrapper(module, 'create_http_method_map', wrap_responder)
def instrument_sanic_response(module): wrap_function_wrapper(module, 'BaseHTTPResponse._parse_headers', _nr_sanic_response_parse_headers)
def instrument_aiohttp_wsgi(module): wrap_function_wrapper(module, 'WsgiResponse.__init__', _nr_aiohttp_wrap_wsgi_response_)
def instrument_aiohttp_protocol(module): wrap_function_wrapper(module, 'Request.send_headers', _nr_aiohttp_add_cat_headers_)
def instrument_aiohttp_web_response(module): wrap_function_wrapper(module, 'Response.prepare', _nr_aiohttp_response_prepare_)
def instrument_aiohttp_web(module): wrap_function_wrapper(module, 'Application._handle', _nr_aiohttp_transaction_wrapper_) wrap_function_wrapper(module, 'Application.__init__', _nr_aiohttp_wrap_application_init_)
def instrument_tornado_stack_context(module): wrap_function_wrapper(module, 'wrap', _nr_wrapper_stack_context_wrap_) wrap_function_wrapper(module, '_handle_exception', _nr_wrapper_handle_exception_)