Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-apm
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
TaoHuang
2019-11-12 11:00:59 +0800
Commit
5e9d9f90013889865c020ce381b9124ca4946c6b
1 parent
5d8d82ab
feat(client): add yas error report
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
middleware/clientapm-service.js
middleware/clientapm.js
middleware/clientapm-service.js
View file @
5e9d9f9
...
...
@@ -57,7 +57,7 @@ function handleClientError(scope, item) {
_
.
merge
(
data
,
{
measurement
:
'error-report'
,
tags
:
{
type
:
'client'
type
:
item
.
tp
||
'client'
},
fields
:
Object
.
assign
({
message
:
item
.
msg
,
...
...
middleware/clientapm.js
View file @
5e9d9f9
...
...
@@ -87,6 +87,7 @@ module.exports = (req, res, next) => {
}
switch
(
item
.
tp
)
{
case
'yas_err'
:
case
'err'
:
{
handleClientError
(
scope
,
item
);
break
;
...
...
Please
register
or
login
to post a comment