func (t RequestTrace) Latency() RequestLatency {
	var attempts []RequestAttemptLatency
	for _, a := range t.Attempts {
		attempts = append(attempts, a.Latency())
	}

	latency := RequestLatency{
		Latency:  safeTimeDelta(t.Start, t.Finish),
		Validate: safeTimeDelta(t.ValidateStart, t.ValidateDone),
		Build:    safeTimeDelta(t.BuildStart, t.BuildDone),
		Attempts: attempts,
	}

	return latency
}
// Latency returns the latencies of the request trace components.
Latency returns the latencies of the request trace components.
// Latency returns the latencies of the request trace components .
func (t RequestTrace) Latency() RequestLatency {
	var attempts []RequestAttemptLatency
	for _, a := range t.Attempts {
		attempts = append(attempts, a.Latency())
	}
	latency := RequestLatency{
		Latency:  safeTimeDelta(t.Start, t.Finish),
		Validate: safeTimeDelta(t.ValidateStart, t.ValidateDone),
		Build:    safeTimeDelta(t.BuildStart, t.BuildDone),
		Attempts: attempts,
	}
	return latency
}
func ( t RequestTrace ) Latency ( ) RequestLatency { var attempts [ ] RequestAttemptLatency for _ , a := range t . Attempts { attempts = append ( attempts , a . Latency ( ) ) } latency := RequestLatency { Latency : safeTimeDelta ( t . Start , t . Finish ) , Validate : safeTimeDelta ( t . ValidateStart , t . ValidateDone ) , Build : safeTimeDelta ( t . BuildStart , t . BuildDone ) , Attempts : attempts , } return latency }
Latency returns the latencies of the request trace components.
Latency returns the latencies of the request trace components .