Describe the idea
Ideally, this:

would instead show something like:
[
{
user : "gid://app/User/1"
}
]
Why do you think it's beneficial to most of the users
Currently it renders the .to_s or .inspect of the object which contains no useful information for diagnosing the issue.
Possible implementation
I am not sure how to do this cleanly. Obviously overriding Sentry::Event#to_hash could work but seems a bit iffy for projects without GlobalID.
Perhaps, it should happen in
|
def sentry_context |
|
{ |
|
active_job: self.class.name, |
|
arguments: arguments, |
|
scheduled_at: scheduled_at, |
|
job_id: job_id, |
|
provider_job_id: provider_job_id, |
|
locale: locale |
|
} |
|
end |
Describe the idea
Ideally, this:
would instead show something like:
Why do you think it's beneficial to most of the users
Currently it renders the
.to_sor.inspectof the object which contains no useful information for diagnosing the issue.Possible implementation
I am not sure how to do this cleanly. Obviously overriding
Sentry::Event#to_hashcould work but seems a bit iffy for projects without GlobalID.Perhaps, it should happen in
sentry-ruby/sentry-rails/lib/sentry/rails/active_job.rb
Lines 55 to 64 in 9303b9a