def METHOD_NAME(*args, **kwargs):
    breadcrumbs = _BreadCrumbs(activity=f.__name__)
    try:
        return f(*args, breadcrumbs=breadcrumbs, **kwargs)
    except SystemExit as e:
        if e.code != 0:
            breadcrumbs.fail()
        raise
    except BaseException:
        breadcrumbs.fail()
        raise
    finally:
        breadcrumbs.save()