Skip to content

Commit a2a7333

Browse files
committed
Fix conflict issues
1 parent f5369ed commit a2a7333

File tree

2 files changed

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

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
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)