Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rip
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fanxuehui
rip
Commits
5f4768b1
Commit
5f4768b1
authored
Aug 06, 2019
by
aiduck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hebing
parent
0ea00e76
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
monitor.js
src/lib/monitor.js
+0
-1
reporter.js
src/lib/reporter.js
+3
-7
No files found.
src/lib/monitor.js
View file @
5f4768b1
...
@@ -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
});
...
...
src/lib/reporter.js
View file @
5f4768b1
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment