mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
add id to all call invocation logs
This commit is contained in:
@@ -180,6 +180,7 @@ func (a *agent) Submit(callI Call) error {
|
||||
|
||||
call := callI.(*call)
|
||||
ctx := call.req.Context()
|
||||
|
||||
span, ctx := opentracing.StartSpanFromContext(ctx, "agent_submit")
|
||||
defer span.Finish()
|
||||
|
||||
@@ -485,8 +486,7 @@ func (s *hotSlot) exec(ctx context.Context, call *call) error {
|
||||
}
|
||||
|
||||
// link the container id and id in the logs [for us!]
|
||||
// TODO go is broke idk why logrus.Fields doesn't work
|
||||
common.Logger(ctx).WithField("container_id", s.container.id).WithField("id", call.ID).Info("starting call")
|
||||
common.Logger(ctx).WithField("container_id", s.container.id).Info("starting call")
|
||||
|
||||
// swap in the new id and the new stderr logger
|
||||
s.container.swap(stderr)
|
||||
|
||||
Reference in New Issue
Block a user