trace: move gRPC requests from debug to trace

There are many requests to the agent that happen with relatively
high frequency when a workload is running (checkRequest, as an example).

Let's move from Debug to Trace to avoid bombarding journal.

Signed-off-by: Eric Ernst <eric.g.ernst@gmail.com>
This commit is contained in:
Eric Ernst 2021-04-01 08:55:55 -07:00
parent 50fff97753
commit a4c125a8b9

View File

@ -2010,7 +2010,7 @@ func (k *kataAgent) sendReq(spanCtx context.Context, request interface{}) (inter
if cancel != nil { if cancel != nil {
defer cancel() defer cancel()
} }
k.Logger().WithField("name", msgName).WithField("req", message.String()).Debug("sending request") k.Logger().WithField("name", msgName).WithField("req", message.String()).Trace("sending request")
defer func() { defer func() {
agentRPCDurationsHistogram.WithLabelValues(msgName).Observe(float64(time.Since(start).Nanoseconds() / int64(time.Millisecond))) agentRPCDurationsHistogram.WithLabelValues(msgName).Observe(float64(time.Since(start).Nanoseconds() / int64(time.Millisecond)))