func (t *RequestAttemptTrace) Latency() RequestAttemptLatency {
	return RequestAttemptLatency{
		Latency: safeTimeDelta(t.Start, t.Finish),
		Err:     t.Err,

		Sign: safeTimeDelta(t.SignStart, t.SignDone),
		Send: safeTimeDelta(t.SendStart, t.SendDone),

		HTTP: t.HTTPTrace.Latency(),

		Unmarshal:      safeTimeDelta(t.UnmarshalStart, t.UnmarshalDone),
		UnmarshalError: safeTimeDelta(t.UnmarshalErrorStart, t.UnmarshalErrorDone),

		WillRetry: t.WillRetry,
		Retry:     safeTimeDelta(t.RetryStart, t.RetryDone),
	}
}
// Latency returns the latencies of the request attempt trace components.
Latency returns the latencies of the request attempt trace components.
// Latency returns the latencies of the request attempt trace components .
func (t *RequestAttemptTrace) Latency() RequestAttemptLatency {
	return RequestAttemptLatency{
		Latency: safeTimeDelta(t.Start, t.Finish),
		Err:     t.Err,
		Sign: safeTimeDelta(t.SignStart, t.SignDone),
		Send: safeTimeDelta(t.SendStart, t.SendDone),
		HTTP: t.HTTPTrace.Latency(),
		Unmarshal:      safeTimeDelta(t.UnmarshalStart, t.UnmarshalDone),
		UnmarshalError: safeTimeDelta(t.UnmarshalErrorStart, t.UnmarshalErrorDone),
		WillRetry: t.WillRetry,
		Retry:     safeTimeDelta(t.RetryStart, t.RetryDone),
	}
}
func ( t * RequestAttemptTrace ) Latency ( ) RequestAttemptLatency { return RequestAttemptLatency { Latency : safeTimeDelta ( t . Start , t . Finish ) , Err : t . Err , Sign : safeTimeDelta ( t . SignStart , t . SignDone ) , Send : safeTimeDelta ( t . SendStart , t . SendDone ) , HTTP : t . HTTPTrace . Latency ( ) , Unmarshal : safeTimeDelta ( t . UnmarshalStart , t . UnmarshalDone ) , UnmarshalError : safeTimeDelta ( t . UnmarshalErrorStart , t . UnmarshalErrorDone ) , WillRetry : t . WillRetry , Retry : safeTimeDelta ( t . RetryStart , t . RetryDone ) , } }
Latency returns the latencies of the request attempt trace components.
Latency returns the latencies of the request attempt trace components .