mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Wiring new context with initial span
This commit is contained in:
@@ -223,7 +223,8 @@ func (a *agent) Submit(callI Call) error {
|
||||
a.stats.Complete()
|
||||
|
||||
// TODO if the context is timed out here we need to allocate new one
|
||||
call.End(context.Background(), err)
|
||||
ctx = opentracing.ContextWithSpan(context.Background(), span)
|
||||
call.End(ctx, err)
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user