From 8a9da8033cda73a7417cbf623609e21dcefaa6b6 Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Fri, 15 Nov 2024 14:37:28 +0100 Subject: [PATCH] start --- sentry_sdk/integrations/rq.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sentry_sdk/integrations/rq.py b/sentry_sdk/integrations/rq.py index 06eebd9f94..e211b5c2b5 100644 --- a/sentry_sdk/integrations/rq.py +++ b/sentry_sdk/integrations/rq.py @@ -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) @@ -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