Skip to content

Commit e5c5e46

Browse files
committed
Stop using deprecated span.instrumentation_info
1 parent f3d0394 commit e5c5e46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

instrumentation/opentelemetry-instrumentation-aiohttp-client/tests/test_aiohttp_client_integration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def test_schema_url(self):
332332

333333
span = self.memory_exporter.get_finished_spans()[0]
334334
self.assertEqual(
335-
span.instrumentation_info.schema_url,
335+
span.instrumentation_scope.schema_url,
336336
"https://opentelemetry.io/schemas/1.11.0",
337337
)
338338
self.memory_exporter.clear()
@@ -349,7 +349,7 @@ def test_schema_url_new_semconv(self):
349349

350350
span = self.memory_exporter.get_finished_spans()[0]
351351
self.assertEqual(
352-
span.instrumentation_info.schema_url,
352+
span.instrumentation_scope.schema_url,
353353
"https://opentelemetry.io/schemas/1.21.0",
354354
)
355355
self.memory_exporter.clear()
@@ -366,7 +366,7 @@ def test_schema_url_both_semconv(self):
366366

367367
span = self.memory_exporter.get_finished_spans()[0]
368368
self.assertEqual(
369-
span.instrumentation_info.schema_url,
369+
span.instrumentation_scope.schema_url,
370370
"https://opentelemetry.io/schemas/1.21.0",
371371
)
372372
self.memory_exporter.clear()

0 commit comments

Comments
 (0)