Skip to content

Commit

Permalink
Merge pull request #14 from Steffen911/steffen/fix-context
Browse files Browse the repository at this point in the history
fix: use correct parentContext for consumerContext
  • Loading branch information
unflxw authored Dec 27, 2024
2 parents 7d2d431 + ecf650e commit 72a9b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ export class BullMQInstrumentation extends InstrumentationBase {
parentContext,
);

const consumerContext = trace.setSpan(currentContext, span);
const consumerContext = trace.setSpan(parentContext, span);

return await context.with(consumerContext, async () => {
try {
Expand Down

0 comments on commit 72a9b09

Please sign in to comment.