From 4d1dbe012056041cdbd047326d765943be0c6258 Mon Sep 17 00:00:00 2001 From: Wayne Zhang Date: Wed, 15 Mar 2017 12:10:22 -0700 Subject: [PATCH] Always set response latency (#172) --- src/envoy/mixer/http_control.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/envoy/mixer/http_control.cc b/src/envoy/mixer/http_control.cc index 3b97d20a35f..50a637ca356 100644 --- a/src/envoy/mixer/http_control.cc +++ b/src/envoy/mixer/http_control.cc @@ -94,10 +94,8 @@ void FillRequestInfoAttributes(const AccessLog::RequestInfo& info, attr->attributes[kResponseSize] = Attributes::Int64Value(info.bytesSent()); } - if (info.duration().count() > 0) { - attr->attributes[kResponseLatency] = Attributes::DurationValue( - std::chrono::duration_cast(info.duration())); - } + attr->attributes[kResponseLatency] = Attributes::DurationValue( + std::chrono::duration_cast(info.duration())); if (info.responseCode().valid()) { attr->attributes[kResponseHttpCode] =