Skip to content

Commit 1ec00d0

Browse files
committed
replace SpanAttributes.SCHEMA_URL
1 parent 67dbee2 commit 1ec00d0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

instrumentation/opentelemetry-instrumentation-requests/tests/test_requests_integration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
SERVER_PORT,
5252
)
5353
from opentelemetry.semconv.attributes.url_attributes import URL_FULL
54-
from opentelemetry.semconv.trace import SpanAttributes
5554
from opentelemetry.semconv._incubating.attributes.http_attributes import (
5655
HTTP_FLAVOR,
5756
HTTP_HOST,
@@ -167,7 +166,7 @@ def test_basic(self):
167166

168167
self.assertEqual(
169168
span.instrumentation_scope.schema_url,
170-
SpanAttributes.SCHEMA_URL,
169+
"https://opentelemetry.io/schemas/1.11.0",
171170
)
172171

173172
self.assertEqual(
@@ -199,7 +198,7 @@ def test_basic_new_semconv(self):
199198

200199
self.assertEqual(
201200
span.instrumentation_scope.schema_url,
202-
SpanAttributes.SCHEMA_URL,
201+
"https://opentelemetry.io/schemas/1.21.0",
203202
)
204203
self.assertEqual(
205204
span.attributes,
@@ -235,7 +234,7 @@ def test_basic_both_semconv(self):
235234

236235
self.assertEqual(
237236
span.instrumentation_scope.schema_url,
238-
"https://opentelemetry.io/schemas/1.21.0",
237+
"https://opentelemetry.io/schemas/1.21.0",
239238
)
240239
self.assertEqual(
241240
span.attributes,

0 commit comments

Comments
 (0)