def process_signals(signal, **kw): # We need to batch up all signals here and then send them when the # request is finished. This allows us to pass through the request # to the reporters, allowing more detailed logs. if setup(): return for data in _locals.signals: process.send(request=kw['request'], **data)
def process_signals(signal, **kw): # We need to batch up all signals here and then send them when the # request is finished. This allows us to pass through the request # to the reporters, allowing more detailed logs. if setup(): return for data in _locals.signals: process.send(request_path=kw['request_path'], request_meta=kw['request_meta'], **data)
def wrapper(*args, **kwargs): res = func(*args, **kwargs) process.send(None) return res
def send(): yield process.send(None)