@yolo-croket-dev/core 1.8.5 → 1.8.7-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,14 +48,28 @@ async function AmqpHandler(client, messagePattern, payload) {
|
|
|
48
48
|
}
|
|
49
49
|
catch (err) {
|
|
50
50
|
if (typeof err === 'string' && err.includes('There is no matching message handler defined in the remote service.')) {
|
|
51
|
-
msaLogger.error('NOT_EXISTS_MESSAGE_PATTERN', {
|
|
51
|
+
msaLogger.error('NOT_EXISTS_MESSAGE_PATTERN', {
|
|
52
|
+
traceId: ((_b = payload === null || payload === void 0 ? void 0 : payload.param) === null || _b === void 0 ? void 0 : _b.traceId) || '-',
|
|
53
|
+
errInfo: {
|
|
54
|
+
errType: 'NOT_EXISTS_MESSAGE_PATTERN',
|
|
55
|
+
message: `${messagePattern} 해당 메시지 패턴은 존재하지 않습니다.`,
|
|
56
|
+
status: 404,
|
|
57
|
+
},
|
|
58
|
+
}, { err });
|
|
52
59
|
throw new HttpExceptionCustom('해당 메시지 패턴은 존재하지 않습니다.', 404, 'There is no matching message handler defined in the remote service.', {
|
|
53
60
|
type: 'NOT_EXISTS_MESSAGE_PATTERN',
|
|
54
61
|
message: `${messagePattern} 해당 메시지 패턴은 존재하지 않습니다.`,
|
|
55
62
|
});
|
|
56
63
|
}
|
|
57
64
|
else if (err instanceof rxjs_1.TimeoutError || err.message === DEFAULT_TIMEOUT_MESSAGE) {
|
|
58
|
-
msaLogger.error('TIMEOUT_ERROR', {
|
|
65
|
+
msaLogger.error('TIMEOUT_ERROR', {
|
|
66
|
+
traceId: ((_c = payload === null || payload === void 0 ? void 0 : payload.param) === null || _c === void 0 ? void 0 : _c.traceId) || '-',
|
|
67
|
+
errInfo: {
|
|
68
|
+
errType: 'TIMEOUT_ERROR',
|
|
69
|
+
message: DEFAULT_TIMEOUT_MESSAGE,
|
|
70
|
+
status: 500,
|
|
71
|
+
},
|
|
72
|
+
}, { err });
|
|
59
73
|
throw new HttpExceptionCustom(DEFAULT_TIMEOUT_MESSAGE, 500, DEFAULT_TIMEOUT_MESSAGE, {
|
|
60
74
|
type: 'TIMEOUT_ERROR',
|
|
61
75
|
message: DEFAULT_TIMEOUT_MESSAGE,
|
|
@@ -46,7 +46,7 @@ async function AmqpPublish(client, messagePattern, payload, message) {
|
|
|
46
46
|
const result = { ...value };
|
|
47
47
|
const status = result.status || 500;
|
|
48
48
|
const subMessage = result.subMessage;
|
|
49
|
-
msaLogger.
|
|
49
|
+
msaLogger.warn(`Pattern=${messagePattern}:`, { traceId: '-' }, result.arg);
|
|
50
50
|
delete result.isError;
|
|
51
51
|
delete result.status;
|
|
52
52
|
delete result.arg;
|
|
@@ -91,7 +91,7 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
91
91
|
message: error.message,
|
|
92
92
|
stack: error.stack,
|
|
93
93
|
};
|
|
94
|
-
msaLogger.
|
|
94
|
+
msaLogger.warn('isRedeliveryMessage error', { traceId }, logParam);
|
|
95
95
|
isRedeliveryProcess = false;
|
|
96
96
|
}
|
|
97
97
|
finally {
|
|
@@ -330,7 +330,7 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
330
330
|
.pipe((0, operators_1.timeout)({
|
|
331
331
|
each: this.DEFAULT_TIMEOUT,
|
|
332
332
|
with: () => {
|
|
333
|
-
msaLogger.
|
|
333
|
+
msaLogger.warn('RPCInterceptor timeout 발생', { traceId: execInterceptor.traceId }, {
|
|
334
334
|
message: this.DEFAULT_TIMEOUT_MESSAGE,
|
|
335
335
|
messagePattern: method,
|
|
336
336
|
durationMs: Date.now() - now,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/core",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.7-beta.0",
|
|
4
4
|
"author": "Yolo Co., Ltd.",
|
|
5
5
|
"description": "Yolo commonization module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@yolo-croket-dev/logger": "^1.0.15",
|
|
24
|
-
"@yolo-croket-dev/msa-logger": "^3.
|
|
24
|
+
"@yolo-croket-dev/msa-logger": "^3.3.1-beta.0",
|
|
25
25
|
"@yolo-croket-dev/redis": "^1.0.25",
|
|
26
26
|
"axios": "^1.1.3",
|
|
27
27
|
"dd-trace": "^5.46.0",
|