You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am sure that all the content I provide is in English.
Search before asking
I had searched in the issues and found no similar issues.
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
Dubbo: 2.7.7
Java: 1.8
i want use MonitorFilter,but i found not have output.
output set in here
private void logMessageLength(Object result, int bytes) {
if (bytes > 0) {
if (result instanceof Request) {
try {
((RpcInvocation)((Request)result).getData()).setAttachment("input", String.valueOf(bytes));
} catch (Throwable var5) {
}
} else if (result instanceof Response) {
try {
((AppResponse)((Response)result).getResult()).setAttachment("output", String.valueOf(bytes));
} catch (Throwable var4) {
}
}
}
}
but when after this, output is lose
private void decode(Object message) {
if (message instanceof Decodeable) {
try {
((Decodeable)message).decode();
if (log.isDebugEnabled()) {
log.debug("Decode decodeable message " + message.getClass().getName());
}
} catch (Throwable var3) {
Throwable e = var3;
if (log.isWarnEnabled()) {
log.warn("Call Decodeable.decode failed: " + e.getMessage(), e);
}
}
}
}
Steps to reproduce this issue
use dubbo 2.7.7 then debug can reproduce ,very easy
What you expected to happen
i cat hava output in this code
private URL createStatisticsUrl(Invoker<?> invoker, Invocation invocation, Result result, String remoteHost, long start, boolean error) {
// ---- service statistics ----
long elapsed = System.currentTimeMillis() - start; // invocation cost
int concurrent = getConcurrent(invoker, invocation).get(); // current concurrent count
String application = invoker.getUrl().getParameter(APPLICATION_KEY);
String service = invoker.getInterface().getName(); // service name
String method = RpcUtils.getMethodName(invocation); // method name
String group = invoker.getUrl().getParameter(GROUP_KEY);
String version = invoker.getUrl().getParameter(VERSION_KEY);
Pre-check
Search before asking
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
Dubbo: 2.7.7
Java: 1.8
i want use MonitorFilter,but i found not have output.
output set in here
private void logMessageLength(Object result, int bytes) {
if (bytes > 0) {
if (result instanceof Request) {
try {
((RpcInvocation)((Request)result).getData()).setAttachment("input", String.valueOf(bytes));
} catch (Throwable var5) {
}
} else if (result instanceof Response) {
try {
((AppResponse)((Response)result).getResult()).setAttachment("output", String.valueOf(bytes));
} catch (Throwable var4) {
}
}
}
but when after this, output is lose
private void decode(Object message) {
if (message instanceof Decodeable) {
try {
((Decodeable)message).decode();
if (log.isDebugEnabled()) {
log.debug("Decode decodeable message " + message.getClass().getName());
}
} catch (Throwable var3) {
Throwable e = var3;
if (log.isWarnEnabled()) {
log.warn("Call Decodeable.decode failed: " + e.getMessage(), e);
}
}
}
}
Steps to reproduce this issue
use dubbo 2.7.7 then debug can reproduce ,very easy
What you expected to happen
i cat hava output in this code
private URL createStatisticsUrl(Invoker<?> invoker, Invocation invocation, Result result, String remoteHost, long start, boolean error) {
// ---- service statistics ----
long elapsed = System.currentTimeMillis() - start; // invocation cost
int concurrent = getConcurrent(invoker, invocation).get(); // current concurrent count
String application = invoker.getUrl().getParameter(APPLICATION_KEY);
String service = invoker.getInterface().getName(); // service name
String method = RpcUtils.getMethodName(invocation); // method name
String group = invoker.getUrl().getParameter(GROUP_KEY);
String version = invoker.getUrl().getParameter(VERSION_KEY);
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Code of Conduct
The text was updated successfully, but these errors were encountered: