-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quantize sidekiq args #1972
Quantize sidekiq args #1972
Conversation
Couple thoughts...
|
Adding Not sure about the |
@delner will submit another PR regarding Hash quantization... the current code early outs with |
Not sure about the breaking change in removing If so, we must....
If we can't do these, we shouldn't merge this as a breaking change. |
As a follow up to @delner's point:
@dudo if this is addressed, as well as restoring the per-worker configuration, I think this will be good to merge! Thank you again for your work! |
bd9b924
to
cbc3b78
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much, @dudo!
@marcotc @dudo what is the expected behavior of these quantized arguments when using Sidekiq with a framework like Active Job, which uses a wrapper worker class to function? [
{
"job_class"=>"FooJob",
"job_id"=>"18a1bfcc-8597-4715-9892-6b658e44eb07",
"provider_job_id"=>nil,
"queue_name"=>"default",
"priority"=>nil,
"arguments"=>[...],
"executions"=>0,
"exception_executions"=>{},
"locale"=>"en",
"timezone"=>"UTC",
"enqueued_at"=>"2022-07-10T03:00:35Z"
}
] If I'm reading this code correctly, all of those "args" will be quantized and sent as job span tags, which seems unexpected. For reference, Sidekiq itself does its best to parse arguments from known wrappers to display in the web UI. That said, it doesn't hide the argument serialization details which might be useful in this situation (i.e. |
@agrobbin, you mention a very pertinent case. I'll open an issue to track this improvement. |
Captured here #2255. |
Allows us to strip out PII for incoming job args. This could probably replace
tag_args
, or maybe even put the hash in tag_args?? Not sure if that would cause confusion.