@ -80,14 +80,14 @@ public final class Slf4jCallObserver implements CallObserver {
@@ -80,14 +80,14 @@ public final class Slf4jCallObserver implements CallObserver {
@ -101,4 +101,15 @@ public final class Slf4jCallObserver implements CallObserver {
@@ -101,4 +101,15 @@ public final class Slf4jCallObserver implements CallObserver {
@ -16,6 +16,7 @@ public class ChannelException extends RuntimeException {
@@ -16,6 +16,7 @@ public class ChannelException extends RuntimeException {
privatefinalStringoperation;
privatefinalStringrequestId;
privatefinalStringplatformCode;
privatefinalStringplatformRequestId;
privatefinalbooleanretryable;
privatefinalStringrawResponse;
@ -27,6 +28,7 @@ public class ChannelException extends RuntimeException {
@@ -27,6 +28,7 @@ public class ChannelException extends RuntimeException {
this.operation=b.operation;
this.requestId=b.requestId;
this.platformCode=b.platformCode;
this.platformRequestId=b.platformRequestId;
this.retryable=b.retryable;
this.rawResponse=b.rawResponse;
}
@ -59,6 +61,16 @@ public class ChannelException extends RuntimeException {
@@ -59,6 +61,16 @@ public class ChannelException extends RuntimeException {
returnplatformCode;
}
/**
*平台返回的request_id(如领星响应体顶层{@coderequest_id})。
*
*<p>与{@link#requestId()}区分:后者是我方链路ID,用来串本地日志;
*前者是平台侧工单号,用来找平台日志。</p>
*/
publicStringplatformRequestId(){
returnplatformRequestId;
}
publicbooleanretryable(){
returnretryable;
}
@ -76,6 +88,7 @@ public class ChannelException extends RuntimeException {
@@ -76,6 +88,7 @@ public class ChannelException extends RuntimeException {
protectedStringoperation;
protectedStringrequestId;
protectedStringplatformCode;
protectedStringplatformRequestId;
protectedbooleanretryable;
protectedStringrawResponse;
@ -114,6 +127,12 @@ public class ChannelException extends RuntimeException {
@@ -114,6 +127,12 @@ public class ChannelException extends RuntimeException {
returnthis;
}
/** 平台返回的 request_id;与本地链路 ID {@link #requestId(String)} 分开。 */