Skip to content

Commit 243a65a

Browse files
committed
fix imports
1 parent 7667c35 commit 243a65a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,17 +182,19 @@ def client_response_hook(span, future):
182182
from opentelemetry.metrics import get_meter
183183
from opentelemetry.metrics._internal.instrument import Histogram
184184
from opentelemetry.propagators import textmap
185-
from opentelemetry.semconv.metrics import MetricInstruments
186-
from opentelemetry.semconv.trace import (
185+
from opentelemetry.semconv._incubating.attributes.http_attributes import (
187186
HTTP_CLIENT_IP,
188187
HTTP_FLAVOR,
189188
HTTP_HOST,
190189
HTTP_METHOD,
191190
HTTP_SCHEME,
192191
HTTP_STATUS_CODE,
193192
HTTP_TARGET,
193+
)
194+
from opentelemetry.semconv._incubating.attributes.net_attributes import (
194195
NET_PEER_IP,
195196
)
197+
from opentelemetry.semconv.metrics import MetricInstruments
196198
from opentelemetry.trace.status import Status, StatusCode
197199
from opentelemetry.util.http import (
198200
OTEL_INSTRUMENTATION_HTTP_CAPTURE_HEADERS_SERVER_REQUEST,

instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from opentelemetry import trace
2121
from opentelemetry.instrumentation.utils import http_status_to_status_code
2222
from opentelemetry.propagate import inject
23-
from opentelemetry.semconv.trace import (
23+
from opentelemetry.semconv._incubating.attributes.http_attributes import (
2424
HTTP_METHOD,
2525
HTTP_STATUS_CODE,
2626
HTTP_URL,

instrumentation/opentelemetry-instrumentation-tornado/tests/test_instrumentation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@
3030
patch_handler_class,
3131
unpatch_handler_class,
3232
)
33-
from opentelemetry.semconv.trace import (
33+
from opentelemetry.semconv._incubating.attributes.http_attributes import (
3434
HTTP_CLIENT_IP,
3535
HTTP_HOST,
3636
HTTP_METHOD,
3737
HTTP_SCHEME,
3838
HTTP_STATUS_CODE,
3939
HTTP_TARGET,
4040
HTTP_URL,
41+
)
42+
from opentelemetry.semconv._incubating.attributes.net_attributes import (
4143
NET_PEER_IP,
4244
)
4345
from opentelemetry.test.test_base import TestBase

0 commit comments

Comments
 (0)