Skip to content

Commit 8a9da80

Browse files
committed
start
1 parent 1c147e9 commit 8a9da80

File tree

1 file changed

+9
-1
lines changed
  • sentry_sdk/integrations

1 file changed

+9
-1
lines changed

sentry_sdk/integrations/rq.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def sentry_patched_perform_job(self, job, *args, **kwargs):
7676
name=transaction_name,
7777
source=TRANSACTION_SOURCE_TASK,
7878
origin=RqIntegration.origin,
79-
custom_sampling_context={"rq_job": job},
79+
attributes=_prepopulate_attributes(job),
8080
):
8181
rv = old_perform_job(self, job, *args, **kwargs)
8282

@@ -163,3 +163,11 @@ def _capture_exception(exc_info, **kwargs):
163163
)
164164

165165
sentry_sdk.capture_event(event, hint=hint)
166+
167+
168+
JOB_PROPERTY_TO_ATTRIBUTE = {}
169+
170+
171+
def _prepopulate_attributes(job):
172+
attributes = {}
173+
return attributes

0 commit comments

Comments
 (0)