Workers queue - send method return value - feature request

The return value of queue send method is Promise<void>.
The message interface, when being received, is this:

interface Message<Body = any> {
  readonly id: string;
  readonly timestamp: Date;
  readonly body: Body;

It would be very helpful to get back the id and timestamp as the resolved Promise of the send method…
This is important for logging and traceability - I want to be able to trace the full process from message send to handling, including overall time that it takes to handle, see retries, etc.
For that, printing id and timestamp to logs can be super helpful.

1 Like