Skip to content

Serialize ActiveRecord arguments to ActiveJob instances as GlobalIDs #1643

Closed
@bjeanes

Description

@bjeanes

Describe the idea

Ideally, this:

image

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions