From beb541f74c66884f39720aff9654a062da9f21ec Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Tue, 23 Jul 2024 16:33:44 -0600 Subject: [PATCH] Remove v from opentelemetry schema version Fixes #2731 --- .../tests/test_aiohttp_client_integration.py | 4 ++-- .../tests/test_urllib3_integration.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-aiohttp-client/tests/test_aiohttp_client_integration.py b/instrumentation/opentelemetry-instrumentation-aiohttp-client/tests/test_aiohttp_client_integration.py index 3873a6f094..adf54c295b 100644 --- a/instrumentation/opentelemetry-instrumentation-aiohttp-client/tests/test_aiohttp_client_integration.py +++ b/instrumentation/opentelemetry-instrumentation-aiohttp-client/tests/test_aiohttp_client_integration.py @@ -223,7 +223,7 @@ def test_schema_url_new_semconv(self): span = self.memory_exporter.get_finished_spans()[0] self.assertEqual( span.instrumentation_info.schema_url, - "https://opentelemetry.io/schemas/v1.21.0", + "https://opentelemetry.io/schemas/1.21.0", ) self.memory_exporter.clear() @@ -240,7 +240,7 @@ def test_schema_url_both_semconv(self): span = self.memory_exporter.get_finished_spans()[0] self.assertEqual( span.instrumentation_info.schema_url, - "https://opentelemetry.io/schemas/v1.21.0", + "https://opentelemetry.io/schemas/1.21.0", ) self.memory_exporter.clear() diff --git a/instrumentation/opentelemetry-instrumentation-urllib3/tests/test_urllib3_integration.py b/instrumentation/opentelemetry-instrumentation-urllib3/tests/test_urllib3_integration.py index 7dc899691f..5ad4e40ca3 100644 --- a/instrumentation/opentelemetry-instrumentation-urllib3/tests/test_urllib3_integration.py +++ b/instrumentation/opentelemetry-instrumentation-urllib3/tests/test_urllib3_integration.py @@ -239,7 +239,7 @@ def test_schema_url_new_semconv(self): span = self.assert_span() self.assertEqual( span.instrumentation_scope.schema_url, - "https://opentelemetry.io/schemas/v1.21.0", + "https://opentelemetry.io/schemas/1.21.0", ) def test_schema_url_both_semconv(self): @@ -250,7 +250,7 @@ def test_schema_url_both_semconv(self): span = self.assert_span() self.assertEqual( span.instrumentation_scope.schema_url, - "https://opentelemetry.io/schemas/v1.21.0", + "https://opentelemetry.io/schemas/1.21.0", ) def test_basic_not_found(self):