def METHOD_NAME(func):
    def wrapper(*args, **kwargs):
        global _registry
        """A wrapper function to update the registry file each time a metric has been updated"""
        func(*args, **kwargs)
        prometheus_client.write_to_textfile(path=_registry_path, registry=_registry)
    return wrapper