logging.InjectFields does not work.
Author: taeungshinCreated Apr 5, 2024Updated Apr 7, 2024
logging.InjectFields does not work.
// It works. // grpc_ctxtags.Extract(ctx).Set("grpc.request.test", in.GetMessage())
// Doesn't work. ctx = logging.InjectFields(ctx, logging.Fields {"grpc.request.test", in.GetMessage()})
Can you give me more details on how to use this?
Source: grpc-ecosystem/go-grpc-middleware