Skip to content

Commit 67dbee2

Browse files
committed
B
reverted to SpanAttributes for the SCHEMA_URL
1 parent 474c83c commit 67dbee2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
SERVER_PORT,
5252
)
5353
from opentelemetry.semconv.attributes.url_attributes import URL_FULL
54+
from opentelemetry.semconv.trace import SpanAttributes
5455
from opentelemetry.semconv._incubating.attributes.http_attributes import (
5556
HTTP_FLAVOR,
5657
HTTP_HOST,
@@ -59,7 +60,6 @@
5960
HTTP_STATUS_CODE,
6061
HTTP_URL,
6162
)
62-
from opentelemetry.semconv.schemas import Schemas
6363
from opentelemetry.semconv._incubating.attributes.net_attributes import (
6464
NET_PEER_NAME,
6565
NET_PEER_PORT,
@@ -167,7 +167,7 @@ def test_basic(self):
167167

168168
self.assertEqual(
169169
span.instrumentation_scope.schema_url,
170-
"https://opentelemetry.io/schemas/1.11.0",
170+
SpanAttributes.SCHEMA_URL,
171171
)
172172

173173
self.assertEqual(
@@ -199,7 +199,7 @@ def test_basic_new_semconv(self):
199199

200200
self.assertEqual(
201201
span.instrumentation_scope.schema_url,
202-
"https://opentelemetry.io/schemas/1.21.0",
202+
SpanAttributes.SCHEMA_URL,
203203
)
204204
self.assertEqual(
205205
span.attributes,

0 commit comments

Comments
 (0)