def metric(slug, num=1, **kwargs):
    if collection_disabled():
        return

    backend = import_backend()

    try:
        backend.metric(slug, num, **kwargs)
    except Metric.DoesNotExist:
        create_metric(slug=slug, name='Autocreated Metric')
Update the filter results
dataset/ETHPy150Open frankwiles/django-app-metrics/app_metrics/utils.py/metric--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/tsa/statespace/kalman_filter.py/FilterResults.update_filter