is there a way to show the thread native_id:
native_id
The native integral thread ID of this thread. This is a non-negative integer, or None if the thread has not been started. See the get_native_id() function. This represents the Thread ID (TID) as assigned to the thread by the OS (kernel). Its value may be used to uniquely identify this particular thread system-wide (until the thread terminates, after which the value may be recycled by the OS).
in the python logs using the logging LogRecord attributes.
%(threadName)s and %(thread)s do not show the native_id.
I am using linux Ubuntu and RHEL.
Thanks