add unique id

This commit is contained in:
wuaho 2021-10-21 10:32:00 +08:00
parent 3b9ed0c98f
commit 4eea6929d7

2
app.py
View File

@ -41,6 +41,8 @@ class XProcess(Process):
del data['#type']
ts = int(time.time())
data['properties']['unique_id'] = f'{msg.topic}-{msg.partition}-{msg.offset}'
if msg.topic == 'debug':
self.log.info(data)
if 'user' in type_:
# continue