@autofleet/rabbit 3.2.20-beta-2 → 3.2.20

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.
package/dist/index.js CHANGED
@@ -388,7 +388,6 @@ class RabbitMq {
388
388
  }
389
389
  const traceId = msg.properties.headers[consts_1.TRACING_HEADER];
390
390
  const userId = msg.properties.headers[consts_1.USER_TRACING_HEADER];
391
- const automationId = msg.properties.headers['x-af-automation-id'];
392
391
  const parsedMessage = RabbitMq.parseMsg(msg);
393
392
  const releaseLock = await this.lockRedisIfNeeded(parsedMessage, optionsWithDefaults);
394
393
  const trace = (0, zehut_1.newTrace)(zehut_1.traceTypes.RABBIT);
@@ -413,10 +412,7 @@ class RabbitMq {
413
412
  outbreakTrace?.context.set(consts_1.TRACING_HEADER, traceId);
414
413
  }
415
414
  if (auditContext) {
416
- await auditContext(queue, {
417
- userId,
418
- automationId,
419
- });
415
+ await auditContext(queue);
420
416
  }
421
417
  const shouldConsume = await this.shouldConsumeMessageByTimestamp(parsedMessage);
422
418
  if (!shouldConsume) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/rabbit",
3
- "version": "3.2.20-beta-2",
3
+ "version": "3.2.20",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -19,7 +19,6 @@ import RabbitError from './lib/rabbitError';
19
19
  import getRedisInstance, { RedisConfig } from './lib/redis';
20
20
  import { assertExchangeFanout, rand, wrapSetImmediate } from './lib/utils';
21
21
  import {
22
- AUTOMATION_ID_HEADER,
23
22
  CONNECTION_CREATED_CONST,
24
23
  CONNECTION_FAILED_CONST,
25
24
  DEFAULT_LOCK_TIMEOUT,
@@ -556,7 +555,6 @@ class RabbitMq implements IAfRabbitMq {
556
555
 
557
556
  const traceId = msg.properties.headers[TRACING_HEADER];
558
557
  const userId = msg.properties.headers[USER_TRACING_HEADER];
559
- const automationId = msg.properties.headers[AUTOMATION_ID_HEADER];
560
558
  const parsedMessage = RabbitMq.parseMsg(msg);
561
559
  const releaseLock = await this.lockRedisIfNeeded(parsedMessage, optionsWithDefaults);
562
560
  const trace = newTrace(traceTypes.RABBIT);
@@ -582,16 +580,7 @@ class RabbitMq implements IAfRabbitMq {
582
580
  }
583
581
 
584
582
  if (auditContext) {
585
- logger.info('audit context payload',
586
- {
587
- queue,
588
- userId,
589
- automationId,
590
- });
591
- await auditContext(queue, {
592
- userId,
593
- automationId,
594
- });
583
+ await auditContext(queue);
595
584
  }
596
585
  const shouldConsume = await this.shouldConsumeMessageByTimestamp(parsedMessage);
597
586
  if (!shouldConsume) {
package/src/lib/consts.ts CHANGED
@@ -3,7 +3,6 @@ export const DEFAULT_LOCK_TIMEOUT = 1000 * 5;
3
3
  export const RETRY_HEADER = 'x-retry-count';
4
4
  export const TRACING_HEADER = 'x-trace-id';
5
5
  export const USER_TRACING_HEADER = 'x-af-user-id';
6
- export const AUTOMATION_ID_HEADER = 'x-af-automation-id';
7
6
  export const USER_OBJECT = 'userObject';
8
7
  export const DEFAULT_USE_CONSUME_WITH_LOCK = false;
9
8
  export const CONNECTION_CREATED_CONST = 'connectionCreated';