Attach X-Call-Id to asynchronous calls

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (VMware) 2018-08-16 16:04:09 +01:00
parent 2031c64183
commit c86de503c7

View File

@ -93,7 +93,7 @@ func main() {
log.Fatalln(queueErr)
}
faasHandlers.QueuedProxy = handlers.MakeQueuedProxy(metricsOptions, true, natsQueue)
faasHandlers.QueuedProxy = handlers.MakeCallIDMiddleware(handlers.MakeQueuedProxy(metricsOptions, true, natsQueue))
faasHandlers.AsyncReport = handlers.MakeAsyncReport(metricsOptions)
}