def instrument_django_core_handlers_base(module):

    # Attach a post function to load_middleware() method of
    # BaseHandler to trigger insertion of browser timing
    # middleware and wrapping of middleware for timing etc.

    wrap_post_function(module, 'BaseHandler.load_middleware',
                       insert_and_wrap_middleware)
def instrument_django_core_handlers_base(module):

    # Attach a post function to load_middleware() method of
    # BaseHandler to trigger insertion of browser timing
    # middleware and wrapping of middleware for timing etc.

    wrap_post_function(module, 'BaseHandler.load_middleware',
            insert_and_wrap_middleware)
def instrument_gevent_monkey(module):
    wrap_post_function(module, 'patch_thread', _patch_thread)
def instrument_gevent_monkey(module):
    wrap_post_function(module, 'patch_thread', _patch_thread)