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_)
示例#3
0
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_)
示例#5
0
def instrument_starlette_routing(module):
    wrap_function_wrapper(module, "Route.__init__", wrap_route)
示例#6
0
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_)
示例#8
0
def instrument_django_gzip_middleware(module):

    wrap_function_wrapper(module, 'GZipMiddleware.process_response',
                          _nr_wrapper_GZipMiddleware_process_response_)
示例#9
0
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)
示例#11
0
def instrument_logging(module):
    if hasattr(module, "Logger"):
        if hasattr(module.Logger, "callHandlers"):
            wrap_function_wrapper(module, "Logger.callHandlers",
                                  wrap_callHandlers)
示例#12
0
def instrument_tornado_httputil(module):
    wrap_function_wrapper(module, '_NormalizedHeaderCache.__missing__',
                          _nr_wrapper__NormalizedHeaderCache___missing__)
示例#13
0
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)
示例#14
0
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_)
示例#16
0
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_)
示例#18
0
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__)
示例#19
0
def instrument_asyncpg_protocol(module):
    wrap_function_wrapper(module, "Protocol", proxy_protocol)
示例#20
0
def instrument_starlette_requests(module):
    wrap_function_wrapper(module, "Request.__init__", wrap_request)
示例#21
0
def instrument_asyncpg_connect_utils(module):
    wrap_function_wrapper(module, "_connect_addr", wrap_connect)
示例#22
0
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_)
示例#29
0
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_)