From d12bd7ca142ae44e65594c29c4720212e871edf6 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 13 Jun 2022 21:51:45 +0300 Subject: [PATCH] Replace deprecated threading.currentThread with current_thread --- epsagon/trace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epsagon/trace.py b/epsagon/trace.py index e4e60d91..b939a528 100755 --- a/epsagon/trace.py +++ b/epsagon/trace.py @@ -62,7 +62,7 @@ def get_thread_id(): Return current thread id :return: thread id """ - return threading.currentThread().ident + return threading.current_thread().ident def create_transport(collector_url, token):