Fix bug in `parseInternalErrorCode` where some error codes are never reached (#6226)

This commit is contained in:
Zhenxu Ke 2021-01-19 16:53:06 +08:00 committed by GitHub
parent 97f54114a5
commit 6893fec8bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -70,6 +70,7 @@ Release Notes.
* Log collecting and query implementation
* Support Alarm to feishu
* Add the implementation of ConfigurationDiscovery on the OAP side.
* Fix bug in `parseInternalErrorCode` where some error codes are never reached.
#### UI
* Fix un-removed tags in trace query.

View File

@ -202,7 +202,7 @@ public class LogEntry2MetricsAdapter {
return "fault_injected";
} else if (responseFlags.getRateLimited()) {
return "rate_limited";
} else if (responseFlags.getUnauthorizedDetails() != null) {
} else if (responseFlags.hasUnauthorizedDetails()) {
return "unauthorized_details";
} else if (responseFlags.getRateLimitServiceError()) {
return "rate_limit_service_error";