Patch Consumer to support dd-trace-js traceability #494
rbonestell
started this conversation in
Feature Request
Replies: 1 comment 2 replies
-
Hey, thanks for posting the request. We don't use DataDog within the BBC as far as I'm aware, and we'd need some sort of agreement with them to use their services (legal stuff I'm afraid). I could probably look personally, but I also don't really have a working knowledge with the service to really understand how it works. It might be helpful if we could get an example app setup that showed the library in use with sqs-consumer (we have a repo here: https://github.com/bbc/sqs-consumer-starter/tree/main/examples/ts-esm), then maybe I could look personally or someone from the community could take a look and post a PR. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
It seems that due to the implementation style of promise chaining in the
Consumer
, there is functionally no way for the dd-trace-js library to persist context and continue the same trace context from which the message was enqueued.To be candid, I'm no NodeJS expert and don't thoroughly understand the root cause here. Please refer to the explanation from a maintainer of dd-trace-js, found here: DataDog/dd-trace-js#1680 (comment)
Resolving this functional conflict with dd-trace-js will allow users of sqs-consumer to support distributed tracing across services which communicate using sqs-consumer and sqs-producer.
Objectives
Consumer.poll()
function in order to support implicit distributed traceability over SQS with the dd-trace-js library.Beta Was this translation helpful? Give feedback.
All reactions