@staticmethod
    def generate_unique_thread_id():
        LogFileProcessor.__thread_id_lock.acquire()
        LogFileProcessor.__thread_id_counter += 1
        new_id = LogFileProcessor.__thread_id_counter
        LogFileProcessor.__thread_id_lock.release()

        return 'log_%d' % new_id
Generates and returns a unique thread id that has not been issued before by this agent.
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/log_processing.py/LogFileProcessor.generate_unique_thread_id