@@ -86,11 +86,10 @@ Feature: Automatic network instrumentation spans
8686
8787 Scenario : Automatically start a network span that has a null URL
8888 Given I run "AutoInstrumentNetworkNullURLScenario"
89- And I wait to receive at least 1 span
89+ And I wait to receive a span named "[HTTP/GET]"
9090 Then the trace "Content-Type" header equals "application/json"
9191 * the trace "Bugsnag-Sent-At" header matches the regex "^\d\d\d\d -\d\d -\d\d T\d\d :\d\d :\d\d\.\d\d\d Z$"
9292 * every span field "parentSpanId" does not exist
93- * a span field "name" equals "[HTTP/GET]"
9493 * a span string attribute "http.flavor" exists
9594# * a span string attribute "http.url" matches the regex "http://.*:9[0-9]{3}/reflect\?status=200"
9695 * a span string attribute "http.method" equals "GET"
@@ -109,11 +108,10 @@ Feature: Automatic network instrumentation spans
109108 Scenario : Automatically start a network span triggered by AVAssetDownloadURLSession (must not crash)
110109 Given I run "AutoInstrumentAVAssetScenario"
111110 And I wait for 2 seconds
112- And I wait to receive at least 2 spans
111+ And I wait to receive a span named "[HTTP/GET]"
113112 Then the trace "Content-Type" header equals "application/json"
114113 * the trace "Bugsnag-Sent-At" header matches the regex "^\d\d\d\d -\d\d -\d\d T\d\d :\d\d :\d\d\.\d\d\d Z$"
115114 * every span field "parentSpanId" does not exist
116- * a span field "name" equals "[HTTP/GET]"
117115 * every span field "spanId" matches the regex "^[A-Fa-f0-9]{16}$"
118116 * every span field "traceId" matches the regex "^[A-Fa-f0-9]{32}$"
119117 * a span field "kind" equals 1
@@ -198,10 +196,9 @@ Feature: Automatic network instrumentation spans
198196 # Wait for a long time because there can be a LOT of maze-runner related URL requests before the scenario starts.
199197 And I wait for 20 seconds
200198 # There will actually be any number of requests by this point since we're not filtering at all.
201- And I wait to receive at least 1 span
199+ And I wait to receive a span named "[HTTP/GET]"
202200 Then the trace "Content-Type" header equals "application/json"
203201 * the trace "Bugsnag-Sent-At" header matches the regex "^\d\d\d\d -\d\d -\d\d T\d\d :\d\d :\d\d\.\d\d\d Z$"
204- * a span field "name" equals "[HTTP/GET]"
205202 * every span field "spanId" matches the regex "^[A-Fa-f0-9]{16}$"
206203 * every span field "traceId" matches the regex "^[A-Fa-f0-9]{32}$"
207204 * every span field "kind" equals 3
0 commit comments