def METHOD_NAME(self, request, view_func, view_args, view_kwargs):
    m = request.resolver_match
    if m.namespace in (
        "admin",
        "monitoring",
    ):
        request._monitoring = None
        del request._monitoring