Skip to content

Commit

Permalink
use compat
Browse files Browse the repository at this point in the history
  • Loading branch information
taegyunkim committed Jan 10, 2025
1 parent 98affef commit 6262fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/profiling/collector/_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def _release(self, inner_func, *args, **kwargs):
return inner_func(*args, **kwargs)
finally:
if start is not None:
end = time.monotonic_ns()
end = compat.monotonic_ns()
thread_id, thread_name = _current_thread()
task_id, task_name, task_frame = _task.get_task(thread_id)
lock_name = "%s:%s" % (self._self_init_loc, self._self_name) if self._self_name else self._self_init_loc
Expand Down

0 comments on commit 6262fbf

Please sign in to comment.