I think we should define an independent variable to represent the Quantile for factorLatency while not use c.Threshold,where c.Threshold should be the latency value?
l := hist.LatencyAtQuantile(c.Threshold)
if l.Nanoseconds()/int64(time.Millisecond) > int64(c.Threshold) {
isTripped = true
}