@@ -21,7 +21,7 @@ def test_basic(sentry_init, capture_events):
2121 events = capture_events ()
2222
2323 s3 = session .resource ("s3" )
24- with sentry_sdk .start_transaction () as transaction , MockResponse (
24+ with sentry_sdk .start_span () as transaction , MockResponse (
2525 s3 .meta .client , 200 , {}, read_fixture ("s3_list.xml" )
2626 ):
2727 bucket = s3 .Bucket ("bucket" )
@@ -45,7 +45,7 @@ def test_breadcrumb(sentry_init, capture_events):
4545
4646 try :
4747 s3 = session .resource ("s3" )
48- with sentry_sdk .start_transaction (), MockResponse (
48+ with sentry_sdk .start_span (), MockResponse (
4949 s3 .meta .client , 200 , {}, read_fixture ("s3_list.xml" )
5050 ):
5151 bucket = s3 .Bucket ("bucket" )
@@ -75,7 +75,7 @@ def test_streaming(sentry_init, capture_events):
7575 events = capture_events ()
7676
7777 s3 = session .resource ("s3" )
78- with sentry_sdk .start_transaction () as transaction , MockResponse (
78+ with sentry_sdk .start_span () as transaction , MockResponse (
7979 s3 .meta .client , 200 , {}, b"hello"
8080 ):
8181 obj = s3 .Bucket ("bucket" ).Object ("foo.pdf" )
@@ -113,7 +113,7 @@ def test_streaming_close(sentry_init, capture_events):
113113 events = capture_events ()
114114
115115 s3 = session .resource ("s3" )
116- with sentry_sdk .start_transaction () as transaction , MockResponse (
116+ with sentry_sdk .start_span () as transaction , MockResponse (
117117 s3 .meta .client , 200 , {}, b"hello"
118118 ):
119119 obj = s3 .Bucket ("bucket" ).Object ("foo.pdf" )
@@ -142,7 +142,7 @@ def test_omit_url_data_if_parsing_fails(sentry_init, capture_events):
142142 "sentry_sdk.integrations.boto3.parse_url" ,
143143 side_effect = ValueError ,
144144 ):
145- with sentry_sdk .start_transaction () as transaction , MockResponse (
145+ with sentry_sdk .start_span () as transaction , MockResponse (
146146 s3 .meta .client , 200 , {}, read_fixture ("s3_list.xml" )
147147 ):
148148 bucket = s3 .Bucket ("bucket" )
@@ -170,7 +170,7 @@ def test_span_origin(sentry_init, capture_events):
170170 events = capture_events ()
171171
172172 s3 = session .resource ("s3" )
173- with sentry_sdk .start_transaction (), MockResponse (
173+ with sentry_sdk .start_span (), MockResponse (
174174 s3 .meta .client , 200 , {}, read_fixture ("s3_list.xml" )
175175 ):
176176 bucket = s3 .Bucket ("bucket" )
0 commit comments