Wrap a Cloudflare Queue with automatic PRODUCER span creation
Creates a PRODUCER span for each send/sendBatch operation and automatically injects trace context into the message body.
const tracedQueue = wrapQueue(env.MY_QUEUE, 'my-queue');await tracedQueue.send({ orderId: 123 });// Creates PRODUCER span and injects _traceparent automatically Copy
const tracedQueue = wrapQueue(env.MY_QUEUE, 'my-queue');await tracedQueue.send({ orderId: 123 });// Creates PRODUCER span and injects _traceparent automatically
Wrap a Cloudflare Queue with automatic PRODUCER span creation
Creates a PRODUCER span for each send/sendBatch operation and automatically injects trace context into the message body.