File tree 5 files changed +24
-14
lines changed
5 files changed +24
-14
lines changed Original file line number Diff line number Diff line change
1
+ 2.1.0 / 2015-09-15
2
+ ==================
3
+
4
+ * 使用 oneapm 代替 newrelic
5
+
1
6
2.0.1 / 2015-08-07
2
7
==================
3
8
Original file line number Diff line number Diff line change 8
8
9
9
var config = require ( './config' ) ;
10
10
11
- if ( ! config . debug ) {
12
- require ( 'newrelic ' ) ;
11
+ if ( ! config . debug && config . oneapm_key ) {
12
+ require ( 'oneapm ' ) ;
13
13
}
14
14
15
15
require ( 'colors' ) ;
Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ var config = {
87
87
// 是否允许直接注册(否则只能走 github 的方式)
88
88
allow_sign_up : true ,
89
89
90
- // newrelic 是个用来监控网站性能的服务
91
- newrelic_key : 'yourkey ' ,
90
+ // oneapm 是个用来监控网站性能的服务
91
+ oneapm_key : '' ,
92
92
93
93
// 下面两个配置都是文件上传的配置
94
94
Original file line number Diff line number Diff line change 1
- var config = require ( './config' ) ;
2
1
/**
3
- * New Relic agent configuration.
2
+ * OneAPM agent configuration.
4
3
*
5
4
* See lib/config.defaults.js in the agent distribution for a more complete
6
5
* description of configuration variables and their potential values.
7
6
*/
7
+
8
+ var config = require ( './config' ) ;
9
+
8
10
exports . config = {
9
11
/**
10
12
* Array of application names.
11
13
*/
12
- app_name : [ config . name ] ,
14
+ app_name : [ config . name ] ,
13
15
/**
14
- * Your New Relic license key.
16
+ * Your OneAPM license key.
15
17
*/
16
- license_key : config . newrelic_key ,
17
- logging : {
18
+ license_key : config . oneapm_key ,
19
+ logging : {
18
20
/**
19
- * Level at which to log. 'trace' is most useful to New Relic when diagnosing
21
+ * Level at which to log. 'trace' is most useful to OneAPM when diagnosing
20
22
* issues with the agent, 'info' and higher will impose the least overhead on
21
23
* production applications.
22
24
*/
23
- level : 'info'
25
+ level : 'info'
26
+ } ,
27
+ transaction_events : {
28
+ enabled : true
24
29
}
25
30
} ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " nodeclub" ,
3
- "version" : " 2.0.1 " ,
3
+ "version" : " 2.1.0 " ,
4
4
"private" : true ,
5
5
"main" : " app.js" ,
6
6
"description" : " A Node.js bbs using MongoDB" ,
36
36
"moment" : " 2.9.0" ,
37
37
"mongoose" : " 4.1.3" ,
38
38
"multiline" : " 1.0.1" ,
39
- "newrelic" : " 1.19.2" ,
40
39
"node-uuid" : " 1.4.1" ,
41
40
"nodemailer" : " 0.3.43" ,
41
+ "oneapm" : " 1.2.8" ,
42
42
"passport" : " 0.1.18" ,
43
43
"passport-github" : " 0.1.5" ,
44
44
"pm2" : " 0.14.3" ,
You can’t perform that action at this time.
0 commit comments