def METHOD_NAME():
    # type: () -> None
    old_route = Scaffold.route
    def _sentry_route(*args, **kwargs):
        # type: (*Any, **Any) -> Any
        old_decorator = old_route(*args, **kwargs)
        def decorator(old_func):
            # type: (Any) -> Any
            if inspect.isfunction(old_func) and not is_coroutine_function(old_func):
                @wraps(old_func)
                def _sentry_func(*args, **kwargs):
                    # type: (*Any, **Any) -> Any
                    hub = Hub.current
                    integration = hub.get_integration(QuartIntegration)
                    if integration is None:
                        return old_func(*args, **kwargs)
                    with hub.configure_scope() as sentry_scope:
                        if sentry_scope.profile is not None:
                            sentry_scope.profile.active_thread_id = (
                                threading.current_thread().ident
                            )
                        return old_func(*args, **kwargs)
                return old_decorator(_sentry_func)
            return old_decorator(old_func)
        return decorator
    Scaffold.route = _sentry_route