Skip to content

Commit debbdda

Browse files
cleanup
1 parent 5b3406a commit debbdda

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/integrations/stdlib/test_httplib.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -953,11 +953,12 @@ def test_proxy_http_tunnel(
953953
tunnel_port,
954954
span_streaming,
955955
):
956+
sentry_init(
957+
traces_sample_rate=1.0,
958+
_experiments={"trace_lifecycle": "stream" if span_streaming else "static"},
959+
)
960+
956961
if span_streaming:
957-
sentry_init(
958-
traces_sample_rate=1.0,
959-
_experiments={"trace_lifecycle": "stream" if span_streaming else "static"},
960-
)
961962
items = capture_items("span")
962963

963964
with sentry_sdk.traces.start_span(name="custom parent"):
@@ -981,7 +982,6 @@ def test_proxy_http_tunnel(
981982
assert span["attributes"][SPANDATA.NETWORK_PEER_ADDRESS] == "localhost"
982983
assert span["attributes"][SPANDATA.NETWORK_PEER_PORT] == PROXY_PORT
983984
else:
984-
sentry_init(traces_sample_rate=1.0)
985985
events = capture_events()
986986

987987
with start_transaction(name="test_transaction"):

0 commit comments

Comments
 (0)