Skip to content

Commit

Permalink
fixup! Propagate headers for RabbitMQ handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
nikostoulas committed Oct 3, 2023
1 parent 3b40e03 commit 9d886f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/initializers/rabbitmq/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ export const close = async () => {
}
};

function methodCreator(originalSendToQueue, paramNum, config) {
function methodCreator(originalSendToQueue, propertiesArgIndex, config) {
return function method(...args: any) {
let properties = args[paramNum - 1];
let properties = args[propertiesArgIndex - 1];
if (!properties) {
properties = {};
args[paramNum - 1] = properties;
args[propertiesArgIndex - 1] = properties;
}

const traceHeaderName = config.traceHeaderName.toLowerCase();
Expand Down

0 comments on commit 9d886f8

Please sign in to comment.