1. Overview
Starting from product version V2.4.18 and SDK version "android 1.4.2.PX, iOS 1.4.1.PX, mini program and web sdk 2.0", log_id is used as the identifier that uniquely identifies each log entry in the log system. During log tracing and debugging, log_id can help us quickly locate and trace problems. This topic describes how to generate the log_id logic.
2 Meaning of log_id
log_id is an identifier used to uniquely identify and track log entry. it plays a key role in the log system, helping us locate and solve problems, and providing the ability to analyze the context and timing of log events.
3 The unique UUID of the event that is reported by the SDK.
The mini program, web, iOS SDK, and Android SDK generate a unique "uuid" when an event is triggered. The field location is under ekv and is equal to the client timestamp of each event. The http service API and Java SDK require developers to upload "uuid" with the same meaning.
ekv:
{
id:"button_clk",
ts:11634950,
cusp:{
button_name:"sss"
},
uuid:"1234567890"
}4 log_id generation logic
The log_id generation logic is as follows:
Client tracking: uuid + client timestamp + appkey + device ID for md5
Java SDK /server API tracking point: uuid + client timestamp + appkey + device ID (null if no), md5