Skip to content

Commit c6388d0

Browse files
authored
fix(o11y): dont propagate traces for post process task (#101189)
this is causing traces that are far too large to view, and doesn't really help for debugging. let's not propagate traces here
1 parent 361c184 commit c6388d0

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/sentry/eventstream/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def _dispatch_post_process_group_task(
8888
"project_id": project_id,
8989
"eventstream_type": eventstream_type,
9090
},
91+
headers={"sentry-propagate-traces": False},
9192
)
9293

9394
def _get_occurrence_data(self, event: Event | GroupEvent) -> MutableMapping[str, Any]:

src/sentry/eventstream/kafka/dispatch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def dispatch_post_process_group_task(
6565
"eventstream_type": eventstream_type,
6666
},
6767
queue=queue,
68+
headers={"sentry-propagate-traces": False},
6869
)
6970

7071

tests/sentry/eventstream/kafka/test_dispatch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,5 @@ def test_dispatch_task_with_occurrence(mock_post_process_group: Mock) -> None:
128128
"project_id": 2,
129129
},
130130
"queue": "post_process_issue_platform",
131+
"headers": {"sentry-propagate-traces": False},
131132
}

0 commit comments

Comments
 (0)