@autofleet/rabbit 3.0.1-beta2 → 3.0.1-beta3
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 +2 -0
- package/package.json +1 -1
- package/src/index.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -349,6 +349,7 @@ class RabbitMq {
|
|
|
349
349
|
const parsedMessage = RabbitMq.parseMsg(msg);
|
|
350
350
|
const releaseLock = await this.lockRedisIfNeeded(parsedMessage, optionsWithDefaults);
|
|
351
351
|
const trace = zehut_1.newTrace(zehut_1.traceTypes.RABBIT);
|
|
352
|
+
const outbreakTrace = zehut_1.newTrace(zehut_1.traceTypes.RABBIT);
|
|
352
353
|
if (userId && enableRabbitTrace) {
|
|
353
354
|
try {
|
|
354
355
|
await zehut_1.createOrSetRabbitTrace(trace, userId);
|
|
@@ -360,6 +361,7 @@ class RabbitMq {
|
|
|
360
361
|
}
|
|
361
362
|
if (traceId) {
|
|
362
363
|
trace?.context?.set(consts_1.TRACING_HEADER, traceId);
|
|
364
|
+
outbreakTrace?.context.set(consts_1.TRACING_HEADER, traceId);
|
|
363
365
|
}
|
|
364
366
|
if (auditContext) {
|
|
365
367
|
await auditContext(queue);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -493,7 +493,7 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
493
493
|
const parsedMessage = RabbitMq.parseMsg(msg);
|
|
494
494
|
const releaseLock = await this.lockRedisIfNeeded(parsedMessage, optionsWithDefaults);
|
|
495
495
|
const trace = newTrace(traceTypes.RABBIT);
|
|
496
|
-
|
|
496
|
+
const outbreakTrace = newTrace(traceTypes.RABBIT);
|
|
497
497
|
if (userId && enableRabbitTrace) {
|
|
498
498
|
try {
|
|
499
499
|
await createOrSetRabbitTrace(trace, userId);
|
|
@@ -505,6 +505,7 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
505
505
|
|
|
506
506
|
if (traceId) {
|
|
507
507
|
(trace as any)?.context?.set(TRACING_HEADER, traceId);
|
|
508
|
+
(outbreakTrace as any)?.context.set(TRACING_HEADER, traceId);
|
|
508
509
|
}
|
|
509
510
|
|
|
510
511
|
if (auditContext) {
|