This is an automated email from the ASF dual-hosted git repository. dagit pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new 3d4d972 Adds 308 origin response stat metric 3d4d972 is described below commit 3d4d9722bad67e0ad3ff5e1698dd3179b26cf41b Author: Derek Dagit <der...@oath.com> AuthorDate: Mon Aug 20 22:31:57 2018 -0500 Adds 308 origin response stat metric --- proxy/http/HttpConfig.cc | 3 +++ proxy/http/HttpConfig.h | 1 + proxy/http/HttpTransact.cc | 3 +++ 3 files changed, 7 insertions(+) diff --git a/proxy/http/HttpConfig.cc b/proxy/http/HttpConfig.cc index d391207..590fa46 100644 --- a/proxy/http/HttpConfig.cc +++ b/proxy/http/HttpConfig.cc @@ -700,6 +700,9 @@ register_stat_callbacks() RecRegisterRawStat(http_rsb, RECT_PROCESS, "proxy.process.http.307_responses", RECD_COUNTER, RECP_PERSISTENT, (int)http_response_status_307_count_stat, RecRawStatSyncCount); + RecRegisterRawStat(http_rsb, RECT_PROCESS, "proxy.process.http.308_responses", RECD_COUNTER, RECP_PERSISTENT, + (int)http_response_status_308_count_stat, RecRawStatSyncCount); + RecRegisterRawStat(http_rsb, RECT_PROCESS, "proxy.process.http.3xx_responses", RECD_COUNTER, RECP_PERSISTENT, (int)http_response_status_3xx_count_stat, RecRawStatSyncCount); diff --git a/proxy/http/HttpConfig.h b/proxy/http/HttpConfig.h index 362ee77..fd61d07 100644 --- a/proxy/http/HttpConfig.h +++ b/proxy/http/HttpConfig.h @@ -273,6 +273,7 @@ enum { http_response_status_304_count_stat, http_response_status_305_count_stat, http_response_status_307_count_stat, + http_response_status_308_count_stat, http_response_status_3xx_count_stat, http_response_status_400_count_stat, http_response_status_401_count_stat, diff --git a/proxy/http/HttpTransact.cc b/proxy/http/HttpTransact.cc index df3164e..6893ef6 100644 --- a/proxy/http/HttpTransact.cc +++ b/proxy/http/HttpTransact.cc @@ -8327,6 +8327,9 @@ HttpTransact::client_result_stat(State *s, ink_hrtime total_time, ink_hrtime req case 307: HTTP_INCREMENT_DYN_STAT(http_response_status_307_count_stat); break; + case 308: + HTTP_INCREMENT_DYN_STAT(http_response_status_308_count_stat); + break; case 400: HTTP_INCREMENT_DYN_STAT(http_response_status_400_count_stat); break;