File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
instrumentation/opentelemetry-instrumentation-tornado
src/opentelemetry/instrumentation/tornado Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -182,17 +182,19 @@ def client_response_hook(span, future):
182
182
from opentelemetry .metrics import get_meter
183
183
from opentelemetry .metrics ._internal .instrument import Histogram
184
184
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 (
187
186
HTTP_CLIENT_IP ,
188
187
HTTP_FLAVOR ,
189
188
HTTP_HOST ,
190
189
HTTP_METHOD ,
191
190
HTTP_SCHEME ,
192
191
HTTP_STATUS_CODE ,
193
192
HTTP_TARGET ,
193
+ )
194
+ from opentelemetry .semconv ._incubating .attributes .net_attributes import (
194
195
NET_PEER_IP ,
195
196
)
197
+ from opentelemetry .semconv .metrics import MetricInstruments
196
198
from opentelemetry .trace .status import Status , StatusCode
197
199
from opentelemetry .util .http import (
198
200
OTEL_INSTRUMENTATION_HTTP_CAPTURE_HEADERS_SERVER_REQUEST ,
Original file line number Diff line number Diff line change 20
20
from opentelemetry import trace
21
21
from opentelemetry .instrumentation .utils import http_status_to_status_code
22
22
from opentelemetry .propagate import inject
23
- from opentelemetry .semconv .trace import (
23
+ from opentelemetry .semconv ._incubating . attributes . http_attributes import (
24
24
HTTP_METHOD ,
25
25
HTTP_STATUS_CODE ,
26
26
HTTP_URL ,
Original file line number Diff line number Diff line change 30
30
patch_handler_class ,
31
31
unpatch_handler_class ,
32
32
)
33
- from opentelemetry .semconv .trace import (
33
+ from opentelemetry .semconv ._incubating . attributes . http_attributes import (
34
34
HTTP_CLIENT_IP ,
35
35
HTTP_HOST ,
36
36
HTTP_METHOD ,
37
37
HTTP_SCHEME ,
38
38
HTTP_STATUS_CODE ,
39
39
HTTP_TARGET ,
40
40
HTTP_URL ,
41
+ )
42
+ from opentelemetry .semconv ._incubating .attributes .net_attributes import (
41
43
NET_PEER_IP ,
42
44
)
43
45
from opentelemetry .test .test_base import TestBase
You can’t perform that action at this time.
0 commit comments