Skip to content

Commit

Permalink
start
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Nov 15, 2024
1 parent 1c147e9 commit 8a9da80
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sentry_sdk/integrations/rq.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def sentry_patched_perform_job(self, job, *args, **kwargs):
name=transaction_name,
source=TRANSACTION_SOURCE_TASK,
origin=RqIntegration.origin,
custom_sampling_context={"rq_job": job},
attributes=_prepopulate_attributes(job),
):
rv = old_perform_job(self, job, *args, **kwargs)

Expand Down Expand Up @@ -163,3 +163,11 @@ def _capture_exception(exc_info, **kwargs):
)

sentry_sdk.capture_event(event, hint=hint)


JOB_PROPERTY_TO_ATTRIBUTE = {}


def _prepopulate_attributes(job):
attributes = {}
return attributes

0 comments on commit 8a9da80

Please sign in to comment.