appsignal / opentelemetry-instrumentation-bullmq

OTel Auto-instrumentation for BullMQ
Apache License 2.0
4 stars 3 forks source link

Add flag to use producer context as consumer parent #11

Closed Steffen911 closed 1 month ago

Steffen911 commented 1 month ago

Issue

Fixes #10

What

Adds a new useProducerContextAsConsumerParent that defaults to false. When set to true, the consumer trace uses the context of the producer as its active context, i.e. it keeps the same traceId. In that case, there is no link to the producer span.

unflxw commented 1 month ago

@Steffen911 Could you make it so that Prettier is happy? 😅

Steffen911 commented 1 month ago

@unflxw It should be happy now 😄