[fea]
[自驾流程添加链路日志]
This commit is contained in:
yangyakun
2025-06-24 11:19:00 +08:00
parent a308650e2d
commit 30c5c431fc
2 changed files with 8 additions and 2 deletions

View File

@@ -73,6 +73,7 @@ object OchAutopilotAnalytics {
params[EVENT_PARAM_AUTOPILOTANALYTICS_GROUP] = EVENT_PARAM_AUTOPILOTANALYTICS_GROUP
OchChainLogManager.addCommonParams(params)
MogoAnalyticUtils.track(EVENT_KEY_START_AUTOPILOT_PARAMETERS, params)
OchChainLogManager.writeChainLogAutopilot("正式启动自驾把参数传给底层",params.toString(),false)
}
/**
@@ -86,6 +87,7 @@ object OchAutopilotAnalytics {
params[EVENT_PARAM_AUTOPILOTANALYTICS_GROUP] = EVENT_PARAM_AUTOPILOTANALYTICS_GROUP
OchChainLogManager.addCommonParams(params)
MogoAnalyticUtils.track(EVENT_KEY_START_AUTOPILOT_ACK, params)
OchChainLogManager.writeChainLogAutopilot("底盘收到启动自驾的ack",params.toString(),false)
}
/**
@@ -156,6 +158,7 @@ object OchAutopilotAnalytics {
mStartAutopilotParams[EVENT_PARAM_AUTOPILOTANALYTICS_GROUP] = EVENT_PARAM_AUTOPILOTANALYTICS_GROUP
OchChainLogManager.addCommonParams(mStartAutopilotParams)
MogoAnalyticUtils.track(mStartAutopilotKey, mStartAutopilotParams)
OchChainLogManager.writeChainLogAutopilot("启动自驾失败",mStartAutopilotParams.toString(),false)
clearStartAutopilotParams() //清空参数数据,防止误传
}
@@ -200,6 +203,7 @@ object OchAutopilotAnalytics {
mStartAutopilotParams[EVENT_PARAM_AUTOPILOTANALYTICS_GROUP] = EVENT_PARAM_AUTOPILOTANALYTICS_GROUP
OchChainLogManager.addCommonParams(mStartAutopilotParams)
MogoAnalyticUtils.track(mStartAutopilotKey, mStartAutopilotParams)
OchChainLogManager.writeChainLogAutopilot("启动自驾成功",mStartAutopilotParams.toString(),false)
clearStartAutopilotParams() //清空参数数据,防止误传
} else {
mStartAutopilotParams[EVENT_PARAM_ENV_ONLINE] = DebugConfig.getNetMode() == DebugConfig.NET_MODE_RELEASE
@@ -251,6 +255,7 @@ object OchAutopilotAnalytics {
params[EVENT_PARAM_AUTOPILOTANALYTICS_GROUP] = EVENT_PARAM_AUTOPILOTANALYTICS_GROUP
OchChainLogManager.addCommonParams(mStartAutopilotParams)
MogoAnalyticUtils.track(getEventKeyApUnableStartReason(), params)
OchChainLogManager.writeChainLogAutopilot("触发\"无法开启自驾已知异常\"埋点",params.toString(),false)
}
/**
@@ -263,6 +268,7 @@ object OchAutopilotAnalytics {
params[EVENT_PARAM_AUTOPILOTANALYTICS_GROUP] = EVENT_PARAM_AUTOPILOTANALYTICS_GROUP
OchChainLogManager.addCommonParams(mStartAutopilotParams)
MogoAnalyticUtils.track(getEventKeyClickStartAutopilot(), params)
OchChainLogManager.writeChainLogAutopilot("用户点击启动自驾的时间",params.toString(),false)
}
/**

View File

@@ -124,8 +124,8 @@ object OchChainLogManager {
fun writeChainLogScanner(title: String, changeInfo: String) {
writeChainLog(title, changeInfo, true, EVENT_KEY_INFO_SCANNER)
}
fun writeChainLogAutopilot(title: String, changeInfo: String) {
writeChainLog(title, changeInfo, true, EVENT_KEY_INFO_AUTOPILOT)
fun writeChainLogAutopilot(title: String, changeInfo: String,upload:Boolean = true) {
writeChainLog(title, changeInfo, upload, EVENT_KEY_INFO_AUTOPILOT)
}
fun writeChainLogInit(title: String, info: String) {