Commit 5f4768b1 authored by aiduck's avatar aiduck

hebing

parent 0ea00e76
...@@ -21,7 +21,6 @@ class Monitor { ...@@ -21,7 +21,6 @@ class Monitor {
log, log,
}, },
}); });
this.reset();
this.record(); this.record();
} else { } else {
this.reset({ userIdentifier }); this.reset({ userIdentifier });
......
...@@ -19,6 +19,7 @@ class Reporter { ...@@ -19,6 +19,7 @@ class Reporter {
init({ env, ...baseInfo }) { init({ env, ...baseInfo }) {
this.baseInfo = baseInfo; this.baseInfo = baseInfo;
this.setEnvironment(env); this.setEnvironment(env);
this.generateKey();
} }
// 更新数据 // 更新数据
updateData(data) { updateData(data) {
...@@ -28,7 +29,6 @@ class Reporter { ...@@ -28,7 +29,6 @@ class Reporter {
}; };
this.generateKey(); this.generateKey();
} }
// 设置系统环境变量 // 设置系统环境变量
setEnvironment(env) { setEnvironment(env) {
if (env === "dev") { if (env === "dev") {
...@@ -63,9 +63,7 @@ class Reporter { ...@@ -63,9 +63,7 @@ class Reporter {
} }
}); });
const extra = { const extra = {
system: this.system, ...baseInfo,
userIdentifier: this.userIdentifier,
path: this.path,
recordKey: this.recordKey, recordKey: this.recordKey,
trackId: trackId, trackId: trackId,
isCDN: true, isCDN: true,
...@@ -94,9 +92,7 @@ class Reporter { ...@@ -94,9 +92,7 @@ class Reporter {
} }
toBus(data) { toBus(data) {
const extra = { const extra = {
system: this.system, ...baseInfo,
userIdentifier: this.userIdentifier,
path: this.path,
recordKey: this.recordKey, recordKey: this.recordKey,
trackId: this.counter.next(), trackId: this.counter.next(),
isCDN: false, isCDN: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment