Skip to content

Commit 0cf6c53

Browse files
use segment source enum
1 parent 0aebe93 commit 0cf6c53

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • sentry_sdk/integrations

sentry_sdk/integrations/rq.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from sentry_sdk.integrations import DidNotEnable, Integration, _check_minimum_version
77
from sentry_sdk.integrations.logging import ignore_logger
88
from sentry_sdk.scope import Scope, should_send_default_pii
9+
from sentry_sdk.traces import SegmentSource
910
from sentry_sdk.tracing import TransactionSource
1011
from sentry_sdk.tracing_utils import has_span_streaming_enabled
1112
from sentry_sdk.utils import (
@@ -88,7 +89,7 @@ def sentry_patched_perform_job(
8889
attributes={
8990
"sentry.op": OP.QUEUE_TASK_RQ,
9091
"sentry.origin": RqIntegration.origin,
91-
"sentry.span.source": TransactionSource.TASK,
92+
"sentry.span.source": SegmentSource.TASK,
9293
SPANDATA.MESSAGING_MESSAGE_ID: job.id,
9394
},
9495
parent_span=None,

0 commit comments

Comments
 (0)