@yolo-croket-dev/core 1.4.53-slowquery.8 → 1.4.53-slowquery.9

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.
@@ -149,9 +149,11 @@ let RPCInterceptor = class RPCInterceptor {
149
149
  const reDeliveryCount = Number(message.properties.headers['x-delivery-count']) || 0; /** 몇번 재전달되었는지 */
150
150
  const staticRetryCount = Number(options === null || options === void 0 ? void 0 : options.messageRetryCount) || 0; /** 최대 재시도 갯수 */
151
151
  const method = content.pattern;
152
+ const correlationId = message.properties.correlationId;
152
153
  const execInterceptor = {
153
154
  method,
154
155
  traceId: ((_a = content.data.param) === null || _a === void 0 ? void 0 : _a.traceId) || '-',
156
+ correlationId,
155
157
  };
156
158
  // const logParam = {
157
159
  // traceId,
@@ -2,6 +2,7 @@ import { OnApplicationShutdown, OnModuleDestroy, OnApplicationBootstrap } from '
2
2
  interface GracefulExecInterceptor {
3
3
  method: string;
4
4
  traceId?: string;
5
+ correlationId: string;
5
6
  }
6
7
  export declare class GracefulShutdownService implements OnApplicationShutdown, OnModuleDestroy, OnApplicationBootstrap {
7
8
  private activeInterceptors;
@@ -46,7 +46,7 @@ let GracefulShutdownService = class GracefulShutdownService {
46
46
  }
47
47
  popActiveInterceptors(execInterceptor) {
48
48
  // eslint-disable-next-line max-len
49
- this.activeInterceptors = this.activeInterceptors.filter((item) => item.method === execInterceptor.method && item.traceId === execInterceptor.traceId);
49
+ this.activeInterceptors = this.activeInterceptors.filter((item) => item.method === execInterceptor.method && item.traceId === execInterceptor.traceId && item.correlationId === execInterceptor.correlationId);
50
50
  }
51
51
  async onApplicationShutdown(signal) {
52
52
  console.debug(`GracefulShutdownService.onApplicationShutdown signal=${signal}`, { traceId: 'ON_APPLICATION_SHUTDOWN' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.4.53-slowquery.8",
3
+ "version": "1.4.53-slowquery.9",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",