We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05e1bff commit 9a1b1aaCopy full SHA for 9a1b1aa
1 file changed
tests/tracing/test_deprecated.py
@@ -9,24 +9,6 @@
9
from sentry_sdk.tracing import Span
10
11
12
-@pytest.mark.skip(reason="This deprecated feature has been removed in SDK 2.0.")
13
-def test_start_span_to_start_transaction(sentry_init, capture_events):
14
- # XXX: this only exists for backwards compatibility with code before
15
- # Transaction / start_transaction were introduced.
16
- sentry_init(traces_sample_rate=1.0)
17
- events = capture_events()
18
-
19
- with start_span(transaction="/1/"):
20
- pass
21
22
- with start_span(Span(transaction="/2/")):
23
24
25
- assert len(events) == 2
26
- assert events[0]["transaction"] == "/1/"
27
- assert events[1]["transaction"] == "/2/"
28
29
30
@pytest.mark.parametrize(
31
"parameter_value_getter",
32
# Use lambda to avoid Hub deprecation warning here (will suppress it in the test)
0 commit comments