Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open
kp-apm
Commits
ba963e4b
Commit
ba963e4b
authored
3 years ago
by
赵培然
🚴🏻
Browse files
Options
Download
Email Patches
Plain Diff
can off
parent
a1d95499
master
v1.0.2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
index.js
index.js
+8
-3
No files found.
index.js
View file @
ba963e4b
'
use strict
'
;
const
apmConfig
=
require
(
'
../../config/apmConfig.json
'
);
const
apm
=
require
(
'
elastic-apm-node
'
).
start
(
apmConfig
);
if
(
apmConfig
.
serverUrl
)
{
const
apm
=
require
(
'
elastic-apm-node
'
).
start
(
apmConfig
);
apm
.
addPatch
(
'
egg
'
,
require
.
resolve
(
'
./instrumentation/egg
'
));
apm
.
addPatch
(
'
@eggjs/router
'
,
require
.
resolve
(
'
./instrumentation/egg-router
'
));
apm
.
addPatch
(
'
egg
'
,
require
.
resolve
(
'
./instrumentation/egg
'
));
apm
.
addPatch
(
'
@eggjs/router
'
,
require
.
resolve
(
'
./instrumentation/egg-router
'
)
);
}
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help