mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #787] [FEATURE REQUEST] Add Metadata/Headers Field for Distributed Tracing in asynq.Task #1400
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#1400
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alabarjasteh on GitHub (Nov 25, 2023).
Original GitHub issue: https://github.com/hibiken/asynq/issues/787
Originally assigned to: @hibiken on GitHub.
Is your feature request related to a problem? Please describe.
I am attempting to integrate distributed tracing into the task scheduler, but currently, there is no proper way to transfer tracing information between clients and workers. I am looking for something analogous to headers in HTTP or RabbitMQ or metadata in gRPC, which could be used to inject tracing context on the client (producer) side and be extracted on the server (consumer) side. Without such headers, I have to add a "tracingCarrier" to every task struct and unmarshal the Asynq payload into that struct.
Here is an example from the Quickstart modified as explained above:
Describe the solution you'd like
I suggest adding a
MetadataorHeaderfield of typemap[string]interface{}in the asynq.Task structure. This field would serve as a suitable place to store data related to tracing.@shuqingzai commented on GitHub (Dec 22, 2023):
#547 #774
@al-bglhk commented on GitHub (Feb 27, 2024):
👍 I would like to have a similar feature as well.