File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
instrumentation/opentelemetry-instrumentation-requests/tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5151 SERVER_PORT ,
5252)
5353from opentelemetry .semconv .attributes .url_attributes import URL_FULL
54+ from opentelemetry .semconv .trace import SpanAttributes
5455from opentelemetry .semconv ._incubating .attributes .http_attributes import (
5556 HTTP_FLAVOR ,
5657 HTTP_HOST ,
5960 HTTP_STATUS_CODE ,
6061 HTTP_URL ,
6162)
62- from opentelemetry .semconv .schemas import Schemas
6363from 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 ,
You can’t perform that action at this time.
0 commit comments