Skip to content

Commit ed1df01

Browse files
Merge branch 'webb/narrow-capture-items' into webb/remove-filters
2 parents f20a4cf + 0f8aca3 commit ed1df01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/integrations/rq/test_rq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def test_tracing_enabled(
291291
worker = rq.SimpleWorker([queue], connection=queue.connection)
292292

293293
if span_streaming:
294-
items = capture_items("span")
294+
items = capture_items("event", "span")
295295

296296
with sentry_sdk.traces.start_span(
297297
name="custom parent",
@@ -302,7 +302,7 @@ def test_tracing_enabled(
302302
queue.enqueue(crashing_job, foo=None)
303303
worker.work(burst=True)
304304

305-
(error_event,) = (item.payload for item in items)
305+
(error_event,) = (item.payload for item in items if item.type == "event")
306306

307307
assert error_event["contexts"]["trace"]["trace_id"] == span.trace_id
308308

0 commit comments

Comments
 (0)