use query latency from spring

Change-Id: I67c5ca558d2be1f4d8cd62a2ab91cffde34db468