Commit 5f4768b1 authored by aiduck's avatar aiduck

hebing

parent 0ea00e76
......@@ -21,7 +21,6 @@ class Monitor {
log,
},
});
this.reset();
this.record();
} else {
this.reset({ userIdentifier });
......
......@@ -19,6 +19,7 @@ class Reporter {
init({ env, ...baseInfo }) {
this.baseInfo = baseInfo;
this.setEnvironment(env);
this.generateKey();
}
// 更新数据
updateData(data) {
......@@ -28,7 +29,6 @@ class Reporter {
};
this.generateKey();
}
// 设置系统环境变量
setEnvironment(env) {
if (env === "dev") {
......@@ -63,9 +63,7 @@ class Reporter {
}
});
const extra = {
system: this.system,
userIdentifier: this.userIdentifier,
path: this.path,
...baseInfo,
recordKey: this.recordKey,
trackId: trackId,
isCDN: true,
......@@ -94,9 +92,7 @@ class Reporter {
}
toBus(data) {
const extra = {
system: this.system,
userIdentifier: this.userIdentifier,
path: this.path,
...baseInfo,
recordKey: this.recordKey,
trackId: this.counter.next(),
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