hibiken / asynq

Simple, reliable, and efficient distributed task queue in Go
MIT License
9.61k stars 695 forks source link

[FEATURE REQUEST] Will your add the TraceId option #774

Open mason51 opened 11 months ago

mason51 commented 11 months ago

Is your feature request related to a problem? Please describe. I have read the asynq.Option code. There are ten options, but I can not find the trace option.

We use distributed tracing to trace every http api in our system. If I NewTask and Enqueue from a http api, I want to pass the TraceID into the distributed job.

For example:

http://frontend.xxx.com/api/buy  
        -> Enqueue TaskA  
        -> Enqueue TaskB   
                ->  call http://backend.xxx.com/api/delivery 
                        -> Enqueue TaskD
        -> Enqueue TaskC

I want to trace every procedure

shuqingzai commented 9 months ago

547