def increment(name, tags=None):
    """Function decorator for incrementing a statsd stat whenever
    a function is invoked.

    >>> from statsdecor.decorators import increment
    >>> @increment('my.metric')
    >>> def my_func():
    >>>     pass
    """
    def wrap(f):
        @wraps(f)
        def decorator(*args, **kwargs):
            stats = client()
            ret = f(*args, **kwargs)
            stats.incr(name, tags=tags)
            return ret
        return decorator
    return wrap