Skip to content

Commit

Permalink
Do not report latency for streaming requests. (envoyproxy#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
chowchow316 authored Dec 28, 2016
1 parent 5910360 commit 4089484
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/endpoints/src/api_manager/context/request_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ void RequestContext::FillReportRequestInfo(

// Must be after response_code and method are assigned.
FillLogMessage(info);
response->GetLatencyInfo(&info->latency);
if(!method()->request_streaming() && !method()->response_streaming()) {
response->GetLatencyInfo(&info->latency);
}
}
}

Expand Down

0 comments on commit 4089484

Please sign in to comment.