未验证 提交 efcb396f 编写于 作者: Z Zhenxu 提交者: GitHub

Only count 5xx as error in Envoy ALS receiver (#7111)

上级 7a3355f9
...@@ -13,6 +13,7 @@ Release Notes. ...@@ -13,6 +13,7 @@ Release Notes.
#### OAP-Backend #### OAP-Backend
* Disable Spring sleuth meter analyzer by default. * Disable Spring sleuth meter analyzer by default.
* Use MAL to calculate JVM metrics, remove OAL dependency. * Use MAL to calculate JVM metrics, remove OAL dependency.
* Only count 5xx as error in Envoy ALS receiver.
#### UI #### UI
......
...@@ -96,7 +96,7 @@ public class LogEntry2MetricsAdapter { ...@@ -96,7 +96,7 @@ public class LogEntry2MetricsAdapter {
final String endpoint = endpoint(); final String endpoint = endpoint();
int responseCode = entry.getResponse().getResponseCode().getValue(); int responseCode = entry.getResponse().getResponseCode().getValue();
responseCode = responseCode > 0 ? responseCode : 200; responseCode = responseCode > 0 ? responseCode : 200;
final boolean status = responseCode >= 200 && responseCode < 400; final boolean status = responseCode < 500;
final Protocol protocol = requestProtocol(entry.getRequest()); final Protocol protocol = requestProtocol(entry.getRequest());
final String tlsMode = parseTLS(properties.getTlsProperties()); final String tlsMode = parseTLS(properties.getTlsProperties());
final String internalErrorCode = parseInternalErrorCode(properties.getResponseFlags()); final String internalErrorCode = parseInternalErrorCode(properties.getResponseFlags());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册