@@ -10,7 +10,7 @@ Feature: Spans with collected CPU metrics
1010 And I run the loaded scenario
1111 And I wait to receive at least 1 span
1212 Then the trace "Content-Type" header equals "application/json"
13- * the trace "Bugsnag-Span-Sampling" header equals "1:1 "
13+ * the trace "Bugsnag-Span-Sampling" header matches the regex "^1: \d {1,2}$ "
1414 * 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$"
1515 * a span field "name" equals "CPUMetricsScenarioDefaultSettingsCPUMetricsDisabled"
1616 * every span field "spanId" matches the regex "^[A-Fa-f0-9]{16}$"
@@ -41,7 +41,7 @@ Feature: Spans with collected CPU metrics
4141 And I run the loaded scenario
4242 And I wait to receive at least 1 span
4343 Then the trace "Content-Type" header equals "application/json"
44- * the trace "Bugsnag-Span-Sampling" header equals "1:1 "
44+ * the trace "Bugsnag-Span-Sampling" header matches the regex "^1: \d {1,2}$ "
4545 * 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$"
4646 * a span field "name" equals "CPUMetricsScenarioNoMetrics"
4747 * every span field "spanId" matches the regex "^[A-Fa-f0-9]{16}$"
@@ -72,7 +72,7 @@ Feature: Spans with collected CPU metrics
7272 And I run the loaded scenario
7373 And I wait to receive at least 1 span
7474 Then the trace "Content-Type" header equals "application/json"
75- * the trace "Bugsnag-Span-Sampling" header equals "1:1 "
75+ * the trace "Bugsnag-Span-Sampling" header matches the regex "^1: \d {1,2}$ "
7676 * 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$"
7777 * a span field "name" equals "CPUMetricsScenarioFirstClass"
7878 * every span field "spanId" matches the regex "^[A-Fa-f0-9]{16}$"
@@ -103,7 +103,7 @@ Feature: Spans with collected CPU metrics
103103 And I run the loaded scenario
104104 And I wait to receive at least 1 span
105105 Then the trace "Content-Type" header equals "application/json"
106- * the trace "Bugsnag-Span-Sampling" header equals "1:1 "
106+ * the trace "Bugsnag-Span-Sampling" header matches the regex "^1: \d {1,2}$ "
107107 * 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$"
108108 * a span field "name" equals "CPUMetricsScenarioNonFirstClass"
109109 * every span field "spanId" matches the regex "^[A-Fa-f0-9]{16}$"
@@ -135,7 +135,7 @@ Feature: Spans with collected CPU metrics
135135 And I run the loaded scenario
136136 And I wait to receive at least 1 span
137137 Then the trace "Content-Type" header equals "application/json"
138- * the trace "Bugsnag-Span-Sampling" header equals "1:1 "
138+ * the trace "Bugsnag-Span-Sampling" header matches the regex "^1: \d {1,2}$ "
139139 * 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$"
140140 * a span field "name" equals "CPUMetricsScenarioNonFirstClassWithMetrics"
141141 * every span field "spanId" matches the regex "^[A-Fa-f0-9]{16}$"
@@ -166,7 +166,7 @@ Feature: Spans with collected CPU metrics
166166 And I run the loaded scenario
167167 And I wait to receive at least 1 span
168168 Then the trace "Content-Type" header equals "application/json"
169- * the trace "Bugsnag-Span-Sampling" header equals "1:1 "
169+ * the trace "Bugsnag-Span-Sampling" header matches the regex "^1: \d {1,2}$ "
170170 * 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$"
171171 * a span field "name" equals "CPUMetricsScenarioLongerSpanDuration"
172172 * every span field "spanId" matches the regex "^[A-Fa-f0-9]{16}$"
@@ -197,7 +197,7 @@ Feature: Spans with collected CPU metrics
197197 And I run the loaded scenario
198198 And I wait to receive at least 1 span
199199 Then the trace "Content-Type" header equals "application/json"
200- * the trace "Bugsnag-Span-Sampling" header equals "1:1 "
200+ * the trace "Bugsnag-Span-Sampling" header matches the regex "^1: \d {1,2}$ "
201201 * 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$"
202202 * a span field "name" equals "CPUMetricsScenarioGenerateSpanLater"
203203 * every span field "spanId" matches the regex "^[A-Fa-f0-9]{16}$"
@@ -232,7 +232,7 @@ Feature: Spans with collected CPU metrics
232232 And I run the loaded scenario
233233 And I wait to receive at least 1 span
234234 Then the trace "Content-Type" header equals "application/json"
235- * the trace "Bugsnag-Span-Sampling" header equals "1:1 "
235+ * the trace "Bugsnag-Span-Sampling" header matches the regex "^1: \d {1,2}$ "
236236 * 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$"
237237 * a span field "name" equals "CPUMetricsScenarioMainThreadHeavyWork"
238238 * every span field "spanId" matches the regex "^[A-Fa-f0-9]{16}$"
@@ -265,7 +265,7 @@ Feature: Spans with collected CPU metrics
265265 And I run the loaded scenario
266266 And I wait to receive at least 1 span
267267 Then the trace "Content-Type" header equals "application/json"
268- * the trace "Bugsnag-Span-Sampling" header equals "1:1 "
268+ * the trace "Bugsnag-Span-Sampling" header matches the regex "^1: \d {1,2}$ "
269269 * 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$"
270270 * a span field "name" equals "CPUMetricsScenarioBgThreadHeavyWork"
271271 * every span field "spanId" matches the regex "^[A-Fa-f0-9]{16}$"
0 commit comments