mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
优化dubbo filter
This commit is contained in:
@@ -60,7 +60,7 @@ public class SopDubboProviderFilter implements Filter {
|
||||
String currentIp = this.ip;
|
||||
String traceId = openContext == null ? "" : openContext.getTraceId();
|
||||
if (log.isInfoEnabled()) {
|
||||
log.info("[dhf_trace][dubbo_server][{}] 收到请求, from={}({}) -> current={}({}), methodName={}.{}, param={}",
|
||||
log.info("[sop_trace][dubbo_server][{}] 收到请求, from={}({}) -> current={}({}), methodName={}.{}, param={}",
|
||||
traceId, fromApp, fromIP, currentApp, currentIp, interfaceName, methodName, param);
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ public class SopDubboProviderFilter implements Filter {
|
||||
// 超过500毫秒告警
|
||||
long spend = System.currentTimeMillis() - startTime;
|
||||
if (log.isWarnEnabled() && spend > 500) {
|
||||
log.warn("[dhf_trace][dubbo_server][time_warn][{}] Dubbo 耗时告警({}ms), from={}({}) -> current={}({}) , methodName={}.{}, param={}",
|
||||
log.warn("[sop_trace][dubbo_server][time_warn][{}] Dubbo 耗时告警({}ms), from={}({}) -> current={}({}) , methodName={}.{}, param={}",
|
||||
traceId, spend, fromApp, fromIP, currentApp, currentIp, interfaceName, methodName, param);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user