lib/vmselectapi: add rpc call prefix to the trace of the rpc call in order to make it more clear

This commit is contained in:
Aliaksandr Valialkin 2022-08-12 00:20:49 +03:00
parent 78f584fb0b
commit 1b39be3305
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -437,7 +437,7 @@ func (s *Server) processRequest(ctx *vmselectRequestCtx) error {
if err != nil {
return fmt.Errorf("cannot read traceEnabled: %w", err)
}
ctx.qt = querytracer.New(traceEnabled, "%s() at vmstorage", rpcName)
ctx.qt = querytracer.New(traceEnabled, "rpc call %s() at vmstorage", rpcName)
// Limit the time required for reading request args.
if err := ctx.bc.SetReadDeadline(time.Now().Add(5 * time.Second)); err != nil {