File tree Expand file tree Collapse file tree
tests/integrations/stdlib Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ):
You can’t perform that action at this time.
0 commit comments