Skip to content

Commit ccffa9b

Browse files
committed
Remove debug helpers
1 parent 94295ac commit ccffa9b

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

instrumentation/opentelemetry-instrumentation-httpx/tests/test_httpx_integration.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,6 @@ def setUp(self):
167167
)
168168
)
169169

170-
def print_spans(self, spans):
171-
for span in spans:
172-
print(span.name, span.attributes)
173-
174170
# pylint: disable=invalid-name
175171
def tearDown(self):
176172
super().tearDown()
@@ -184,9 +180,7 @@ def assert_span(
184180
if exporter is None:
185181
exporter = self.memory_exporter
186182
span_list = exporter.get_finished_spans()
187-
self.assertEqual(
188-
num_spans, len(span_list), self.print_spans(span_list)
189-
)
183+
self.assertEqual(num_spans, len(span_list))
190184
if num_spans == 0:
191185
return None
192186
if num_spans == 1:
@@ -994,23 +988,6 @@ def test_instrument_proxy(self):
994988
2,
995989
)
996990

997-
def print_handler(self, client):
998-
transport = client._transport
999-
handler = getattr(
1000-
transport,
1001-
"handle_request",
1002-
getattr(transport, "handle_async_request", None),
1003-
)
1004-
print(
1005-
handler,
1006-
(
1007-
getattr(handler, "__wrapped__", "no wrapped")
1008-
if handler
1009-
else "no handler"
1010-
),
1011-
)
1012-
return handler
1013-
1014991
def test_instrument_client_with_proxy(self):
1015992
proxy_mounts = self.create_proxy_mounts()
1016993
client = self.create_client(mounts=proxy_mounts)

0 commit comments

Comments
 (0)