|
7 | 7 |
|
8 | 8 | from instana.singletons import tracer, agent |
9 | 9 | from instana.util.ids import hex_id |
10 | | -from tests.helpers import get_first_span_by_filter, get_first_span_by_name, is_test_span |
| 10 | +from tests.helpers import get_first_span_by_filter, get_first_span_by_name, filter_test_span |
11 | 11 | from tests.test_utils import _TraceContextMixin |
12 | 12 | from tests.apps.sanic_app.server import app |
13 | 13 |
|
@@ -57,7 +57,7 @@ def test_basic_get(self) -> None: |
57 | 57 | spans = self.recorder.queued_spans() |
58 | 58 | assert len(spans) == 3 |
59 | 59 |
|
60 | | - test_span = get_first_span_by_filter(spans, is_test_span) |
| 60 | + test_span = get_first_span_by_filter(spans, filter_test_span) |
61 | 61 | assert test_span |
62 | 62 |
|
63 | 63 | httpx_span = get_first_span_by_name(spans, "http") |
@@ -108,7 +108,7 @@ def test_404(self) -> None: |
108 | 108 | spans = self.recorder.queued_spans() |
109 | 109 | assert len(spans) == 3 |
110 | 110 |
|
111 | | - test_span = get_first_span_by_filter(spans, is_test_span) |
| 111 | + test_span = get_first_span_by_filter(spans, filter_test_span) |
112 | 112 | assert test_span |
113 | 113 |
|
114 | 114 | httpx_span = get_first_span_by_name(spans, "http") |
@@ -159,7 +159,7 @@ def test_sanic_exception(self) -> None: |
159 | 159 | spans = self.recorder.queued_spans() |
160 | 160 | assert len(spans) == 4 |
161 | 161 |
|
162 | | - test_span = get_first_span_by_filter(spans, is_test_span) |
| 162 | + test_span = get_first_span_by_filter(spans, filter_test_span) |
163 | 163 | assert test_span |
164 | 164 |
|
165 | 165 | httpx_span = get_first_span_by_name(spans, "http") |
@@ -210,7 +210,7 @@ def test_500_instana_exception(self) -> None: |
210 | 210 | spans = self.recorder.queued_spans() |
211 | 211 | assert len(spans) == 4 |
212 | 212 |
|
213 | | - test_span = get_first_span_by_filter(spans, is_test_span) |
| 213 | + test_span = get_first_span_by_filter(spans, filter_test_span) |
214 | 214 | assert test_span |
215 | 215 |
|
216 | 216 | httpx_span = get_first_span_by_name(spans, "http") |
@@ -261,7 +261,7 @@ def test_500(self) -> None: |
261 | 261 | spans = self.recorder.queued_spans() |
262 | 262 | assert len(spans) == 4 |
263 | 263 |
|
264 | | - test_span = get_first_span_by_filter(spans, is_test_span) |
| 264 | + test_span = get_first_span_by_filter(spans, filter_test_span) |
265 | 265 | assert test_span |
266 | 266 |
|
267 | 267 | httpx_span = get_first_span_by_name(spans, "http") |
@@ -312,7 +312,7 @@ def test_path_templates(self) -> None: |
312 | 312 | spans = self.recorder.queued_spans() |
313 | 313 | assert len(spans) == 3 |
314 | 314 |
|
315 | | - test_span = get_first_span_by_filter(spans, is_test_span) |
| 315 | + test_span = get_first_span_by_filter(spans, filter_test_span) |
316 | 316 | assert test_span |
317 | 317 |
|
318 | 318 | httpx_span = get_first_span_by_name(spans, "http") |
@@ -363,7 +363,7 @@ def test_secret_scrubbing(self) -> None: |
363 | 363 | spans = self.recorder.queued_spans() |
364 | 364 | assert len(spans) == 3 |
365 | 365 |
|
366 | | - test_span = get_first_span_by_filter(spans, is_test_span) |
| 366 | + test_span = get_first_span_by_filter(spans, filter_test_span) |
367 | 367 | assert test_span |
368 | 368 |
|
369 | 369 | httpx_span = get_first_span_by_name(spans, "http") |
@@ -417,7 +417,7 @@ def test_synthetic_request(self) -> None: |
417 | 417 | spans = self.recorder.queued_spans() |
418 | 418 | assert len(spans) == 3 |
419 | 419 |
|
420 | | - test_span = get_first_span_by_filter(spans, is_test_span) |
| 420 | + test_span = get_first_span_by_filter(spans, filter_test_span) |
421 | 421 | assert test_span |
422 | 422 |
|
423 | 423 | httpx_span = get_first_span_by_name(spans, "http") |
@@ -476,7 +476,7 @@ def test_request_header_capture(self) -> None: |
476 | 476 | spans = self.recorder.queued_spans() |
477 | 477 | assert len(spans) == 3 |
478 | 478 |
|
479 | | - test_span = get_first_span_by_filter(spans, is_test_span) |
| 479 | + test_span = get_first_span_by_filter(spans, filter_test_span) |
480 | 480 | assert test_span |
481 | 481 |
|
482 | 482 | httpx_span = get_first_span_by_name(spans, "http") |
@@ -523,7 +523,7 @@ def test_response_header_capture(self) -> None: |
523 | 523 | spans = self.recorder.queued_spans() |
524 | 524 | assert len(spans) == 3 |
525 | 525 |
|
526 | | - test_span = get_first_span_by_filter(spans, is_test_span) |
| 526 | + test_span = get_first_span_by_filter(spans, filter_test_span) |
527 | 527 | assert test_span |
528 | 528 |
|
529 | 529 | httpx_span = get_first_span_by_name(spans, "http") |
|
0 commit comments