Skip to content

Commit 7e01f9e

Browse files
committed
Fix conflict issues
1 parent f5369ed commit 7e01f9e

File tree

2 files changed

+4
-4
lines changed
  • instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado

2 files changed

+4
-4
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def client_resposne_hook(span, future):
178178
http_status_to_status_code,
179179
unwrap,
180180
)
181-
from opentelemetry.metrics import Histogram, get_meter
181+
from opentelemetry.metrics import get_meter
182182
from opentelemetry.propagators import textmap
183183
from opentelemetry.semconv.trace import SpanAttributes
184184
from opentelemetry.trace.status import Status, StatusCode
@@ -407,7 +407,7 @@ def _get_full_handler_name(handler):
407407

408408

409409
def _start_span(self, handler) -> _TraceContext:
410-
start_time_ns = _time_ns()
410+
start_time_ns = time_ns()
411411
start_time = default_timer()
412412

413413
span, token = _start_internal_or_server_span(
@@ -468,7 +468,7 @@ def _finish_span(self, handler, error=None):
468468
if isinstance(error, tornado.web.HTTPError):
469469
status_code = error.status_code
470470
if not ctx and status_code == 404:
471-
ctx = _start_span(self, handler, _time_ns())
471+
ctx = _start_span(self, handler)
472472
else:
473473
status_code = 500
474474
reason = None

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def fetch_async(
5151
args,
5252
kwargs,
5353
):
54-
start_time = _time_ns()
54+
start_time = time_ns()
5555

5656
# Return immediately if no args were provided (error)
5757
# or original_request is set (meaning we are in a redirect step).

0 commit comments

Comments
 (0)