def METHOD_NAME(client):
    """
    Auto-instruments code to get nice spans
    """
    from elasticapm.instrumentation.control import METHOD_NAME
    METHOD_NAME()
    try:
        import celery  # noqa F401
        from elasticapm.contrib.celery import register_instrumentation
        register_instrumentation(client)
    except ImportError:
        client.logger.debug("Not instrumenting Celery, couldn't import")