ddtrace/compat_async.py
def _make_async_decorator(tracer, coro, *params, **kw_params):
    """
    Decorator factory that creates an asynchronous wrapper that yields
    a coroutine result. This factory is required to handle Python 2
    compatibilities.

    :param object tracer: the tracer instance that is used
    :param function f: the coroutine that must be executed
    :param tuple params: arguments given to the Tracer.trace()
    :param dict kw_params: keyword arguments given to the Tracer.trace()
    """
    @functools.wraps(coro)
    @asyncio.coroutine
    def func_wrapper(*args, **kwargs):
        with tracer.trace(*params, **kw_params):
            result = yield from coro(*args, **kwargs)  # noqa: E999
            return result

    return func_wrapper

    Decorator factory that creates an asynchronous wrapper that yields
    a coroutine result. This factory is required to handle Python 2
    compatibilities.

    :param object tracer: the tracer instance that is used
    :param function f: the coroutine that must be executed
    :param tuple params: arguments given to the Tracer.trace()
    :param dict kw_params: keyword arguments given to the Tracer.trace()
    
Decorator factory that creates an asynchronous wrapper that yields
a coroutine result. This factory is required to handle Python 2
compatibilities.
Decorator factory that creates an asynchronous wrapper that yields a coroutine result . This factory is required to handle Python 2 compatibilities .
def _make_async_decorator(tracer, coro, *params, **kw_params):
    @functools.wraps(coro)
    @asyncio.coroutine
    def func_wrapper(*args, **kwargs):
        with tracer.trace(*params, **kw_params):
            result = yield from coro(*args, **kwargs)  
            return result
    return func_wrapper
def _make_async_decorator ( tracer , coro , * params , ** kw_params ) : @ functools . wraps ( coro ) @ asyncio . coroutine def func_wrapper ( * args , ** kwargs ) : with tracer . trace ( * params , ** kw_params ) : result = yield from coro ( * args , ** kwargs ) return result return func_wrapper
Decorator factory that creates an asynchronous wrapper that yields
a coroutine result.
Decorator factory that creates an asynchronous wrapper that yields a coroutine result .
"""
    Decorator factory that creates an asynchronous wrapper that yields
    a coroutine result. This factory is required to handle Python 2
    compatibilities.

    :param object tracer: the tracer instance that is used
    :param function f: the coroutine that must be executed
    :param tuple params: arguments given to the Tracer.trace()
    :param dict kw_params: keyword arguments given to the Tracer.trace()
    """ # noqa: E999
tracer
the tracer instance that is used
the tracer instance that is used
coro
f
the coroutine that must be executed
the coroutine that must be executed
params
arguments given to the Tracer.trace()
arguments given to the Tracer . trace ()
kw_params
keyword arguments given to the Tracer.trace()
keyword arguments given to the Tracer . trace ()