whatap 1.0.1 β 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -78
- package/lib/conf/conf-sys-mon.js +101 -0
- package/lib/conf/config-default.js +10 -3
- package/lib/conf/configure.js +369 -349
- package/lib/conf/license.js +1 -1
- package/lib/control/cmd-config.js +24 -0
- package/lib/control/control-handler.js +367 -0
- package/lib/control/packagectr-helper.js +34 -3
- package/lib/core/agent.js +176 -882
- package/lib/core/interceptor.js +6 -6
- package/lib/core/request-agent.js +27 -0
- package/lib/core/shimmer.js +82 -36
- package/lib/counter/counter-manager.js +79 -8
- package/lib/counter/meter/meter-activex.js +67 -0
- package/lib/counter/meter/meter-httpc.js +57 -0
- package/lib/counter/meter/meter-resource.js +9 -0
- package/lib/counter/meter/meter-service.js +168 -0
- package/lib/counter/meter/meter-socket.io.js +51 -0
- package/lib/counter/meter/meter-sql.js +71 -0
- package/lib/counter/meter/meter-users.js +58 -0
- package/lib/counter/meter.js +183 -0
- package/lib/counter/task/activetransaction.js +68 -17
- package/lib/counter/task/agentinfo.js +107 -0
- package/lib/{system β counter/task}/gc-action.js +27 -74
- package/lib/counter/task/gcstat.js +34 -0
- package/lib/counter/task/heapmem.js +25 -0
- package/lib/counter/task/httpc.js +76 -0
- package/lib/counter/task/metering-info.js +125 -0
- package/lib/counter/task/proc-cpu.js +29 -0
- package/lib/counter/task/realtimeuser.js +31 -0
- package/lib/counter/task/res/systemECSTask.js +39 -0
- package/lib/counter/task/res/systemKubeTask.js +53 -0
- package/lib/counter/task/res/util/awsEcsClientThread.js +218 -0
- package/lib/counter/task/res/util/linuxProcStatUtil.js +14 -0
- package/lib/counter/task/res-sys-cpu.js +62 -0
- package/lib/counter/task/service.js +202 -0
- package/lib/counter/task/socketio.js +30 -0
- package/lib/counter/task/sql.js +105 -0
- package/lib/counter/task/systemperf.js +43 -0
- package/lib/data/datapack-sender.js +289 -0
- package/lib/data/dataprofile-agent.js +162 -0
- package/lib/data/datatext-agent.js +135 -0
- package/lib/data/event-level.js +15 -0
- package/lib/data/test.js +49 -0
- package/lib/data/zipprofile.js +197 -0
- package/lib/env/constants.js +21 -0
- package/lib/error/error-handler.js +437 -0
- package/lib/io/data-inputx.js +13 -3
- package/lib/io/data-outputx.js +268 -206
- package/lib/kube/kube-client.js +144 -0
- package/lib/lang/text-types.js +58 -0
- package/lib/logger.js +6 -6
- package/lib/logsink/line-log-util.js +87 -0
- package/lib/logsink/line-log.js +12 -0
- package/lib/logsink/log-sender.js +78 -0
- package/lib/logsink/log-tracer.js +40 -0
- package/lib/logsink/sender-util.js +56 -0
- package/lib/logsink/zip/zip-send.js +177 -0
- package/lib/net/netflag.js +55 -0
- package/lib/net/receiver.js +66 -0
- package/lib/net/security-master.js +139 -20
- package/lib/net/sender.js +141 -0
- package/lib/net/tcp-return.js +18 -0
- package/lib/net/tcp-session.js +286 -0
- package/lib/net/tcpreq-client-proxy.js +70 -0
- package/lib/net/tcprequest-mgr.js +58 -0
- package/lib/observers/apollo-server-observer.js +33 -27
- package/lib/observers/cluster-observer.js +22 -0
- package/lib/observers/express-observer.js +215 -0
- package/lib/observers/file-observer.js +184 -0
- package/lib/observers/global-observer.js +155 -80
- package/lib/observers/grpc-observer.js +336 -0
- package/lib/observers/http-observer.js +666 -236
- package/lib/observers/maria-observer.js +204 -362
- package/lib/observers/memcached-observer.js +56 -0
- package/lib/observers/mongo-observer.js +317 -0
- package/lib/observers/mongodb-observer.js +169 -226
- package/lib/observers/mongoose-observer.js +518 -323
- package/lib/observers/mssql-observer.js +177 -418
- package/lib/observers/mysql-observer.js +342 -449
- package/lib/observers/mysql2-observer.js +396 -358
- package/lib/observers/net-observer.js +77 -0
- package/lib/observers/oracle-observer.js +559 -384
- package/lib/observers/pgsql-observer.js +231 -489
- package/lib/observers/prisma-observer.js +303 -92
- package/lib/observers/process-observer.js +79 -35
- package/lib/observers/promise-observer.js +31 -0
- package/lib/observers/redis-observer.js +166 -331
- package/lib/observers/schedule-observer.js +67 -0
- package/lib/observers/socket.io-observer.js +226 -187
- package/lib/observers/stream-observer.js +19 -0
- package/lib/observers/thrift-observer.js +197 -0
- package/lib/observers/websocket-observer.js +175 -301
- package/lib/pack/activestack-pack.js +55 -0
- package/lib/pack/apenum.js +8 -0
- package/lib/pack/counter-pack.js +3 -0
- package/lib/pack/errorsnap-pack.js +69 -0
- package/lib/pack/event-pack.js +54 -0
- package/lib/pack/hitmap-pack.js +63 -0
- package/lib/pack/hitmap-pack1.js +152 -0
- package/lib/pack/log-sink-pack.js +14 -52
- package/lib/pack/netstat.js +15 -0
- package/lib/pack/otype.js +7 -0
- package/lib/pack/profile-pack.js +49 -0
- package/lib/pack/realtimeuser-pack.js +41 -0
- package/lib/pack/stat-general-pack.js +96 -0
- package/lib/pack/staterror-pack.js +120 -0
- package/lib/pack/stathttpc-pack.js +66 -0
- package/lib/pack/stathttpc-rec.js +78 -0
- package/lib/pack/statremote-pack.js +46 -0
- package/lib/pack/statservice-pack.js +63 -0
- package/lib/pack/statservice-pack1.js +88 -0
- package/lib/pack/statservice-rec.js +292 -0
- package/lib/pack/statservice-rec_dep.js +151 -0
- package/lib/pack/statsql-pack.js +69 -0
- package/lib/pack/statsql-rec.js +100 -0
- package/lib/pack/statuseragent-pack.js +44 -0
- package/lib/pack/tagcount-pack.js +4 -4
- package/lib/pack/tagctr.js +15 -0
- package/lib/pack/text-pack.js +50 -0
- package/lib/pack/time-count.js +25 -0
- package/lib/pack/websocket.js +15 -0
- package/lib/pack/zip-pack.js +70 -0
- package/lib/pii/pii-item.js +31 -0
- package/lib/pii/pii-mask.js +174 -0
- package/lib/plugin/plugin-loadermanager.js +57 -0
- package/lib/plugin/plugin.js +75 -0
- package/lib/service/tx-record.js +332 -0
- package/lib/stat/stat-error.js +116 -0
- package/lib/stat/stat-httpc.js +98 -0
- package/lib/stat/stat-remote-ip.js +46 -0
- package/lib/stat/stat-remote-ipurl.js +88 -0
- package/lib/stat/stat-sql.js +113 -0
- package/lib/stat/stat-tranx.js +58 -0
- package/lib/stat/stat-tx-caller.js +160 -0
- package/lib/stat/stat-tx-domain.js +111 -0
- package/lib/stat/stat-tx-referer.js +112 -0
- package/lib/stat/stat-useragent.js +48 -0
- package/lib/stat/timingsender.js +76 -0
- package/lib/step/activestack-step.js +38 -0
- package/lib/step/dbc-step.js +36 -0
- package/lib/step/http-stepx.js +67 -0
- package/lib/step/message-step.js +40 -0
- package/lib/step/method-stepx.js +45 -0
- package/lib/step/resultset-step.js +40 -0
- package/lib/step/securemsg-step.js +44 -0
- package/lib/step/socket-step.js +46 -0
- package/lib/step/sql-stepx.js +68 -0
- package/lib/step/sqlxtype.js +16 -0
- package/lib/step/step.js +66 -0
- package/lib/step/stepenum.js +54 -0
- package/lib/topology/link.js +63 -0
- package/lib/topology/nodeinfo.js +123 -0
- package/lib/topology/status-detector.js +111 -0
- package/lib/trace/trace-context-manager.js +113 -25
- package/lib/trace/trace-context.js +21 -7
- package/lib/trace/trace-httpc.js +17 -11
- package/lib/trace/trace-sql.js +29 -21
- package/lib/util/anylist.js +103 -0
- package/lib/util/cardinality/hyperloglog.js +106 -0
- package/lib/util/cardinality/murmurhash.js +31 -0
- package/lib/util/cardinality/registerset.js +75 -0
- package/lib/util/errordata.js +21 -0
- package/lib/util/escape-literal-sql.js +5 -5
- package/lib/util/hashutil.js +18 -18
- package/lib/util/iputil_x.js +527 -0
- package/lib/util/keygen.js +0 -3
- package/lib/util/kube-util.js +73 -0
- package/lib/util/linkedset.js +1 -2
- package/lib/util/nodeutil.js +2 -1
- package/lib/util/paramsecurity.js +80 -0
- package/lib/util/pre-process.js +13 -0
- package/lib/util/process-seq.js +166 -0
- package/lib/util/property-util.js +36 -0
- package/lib/util/request-queue.js +70 -0
- package/lib/util/requestdouble-queue.js +72 -0
- package/lib/util/resourceprofile.js +157 -0
- package/lib/util/stop-watch.js +30 -0
- package/lib/util/system-util.js +10 -0
- package/lib/util/userid-util.js +57 -0
- package/lib/value/map-value.js +3 -2
- package/package.json +9 -4
- package/whatap.conf +1 -4
- package/agent/darwin/arm64/whatap_nodejs +0 -0
- package/agent/linux/amd64/whatap_nodejs +0 -0
- package/agent/linux/arm64/whatap_nodejs +0 -0
- package/build.txt +0 -4
- package/lib/observers/ioredis-observer.js +0 -294
- package/lib/udp/async_sender.js +0 -119
- package/lib/udp/index.js +0 -17
- package/lib/udp/packet_enum.js +0 -52
- package/lib/udp/packet_queue.js +0 -69
- package/lib/udp/packet_type_enum.js +0 -33
- package/lib/udp/param_def.js +0 -72
- package/lib/udp/udp_session.js +0 -336
- package/lib/util/sql-util.js +0 -178
- package/lib/util/trace-helper.js +0 -91
- package/lib/util/transfer.js +0 -58
package/README.md
CHANGED
|
@@ -1,108 +1,62 @@
|
|
|
1
1
|
|
|
2
2
|
[](http://www.whatap.io/)
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
# Whatap for Node.js
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Whatap allows for application performance monitoring.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Works on Linux(32bit, 64bit), MacOSx(32bit, 64bit), Windows(32bit, 64bit).
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
- **Platform**: macOS (64bit), Linux (64bit)
|
|
12
|
-
- **Node.js Version**: 17.0.0 or higher
|
|
13
|
-
- **Database**: MySQL, PostgreSQL, MSSQL, Oracle, MariaDB, MongoDB, Redis
|
|
14
|
-
- **Framework**: Express, Fastify, Socket.IO, WebSocket, GraphQL
|
|
10
|
+
*Node.js μ§μ λ²μ Ό: 16.4.0 μ΄μ
|
|
15
11
|
|
|
16
|
-
|
|
12
|
+

|
|
17
13
|
|
|
18
|
-
|
|
19
|
-
$ npm install whatap
|
|
20
|
-
```
|
|
14
|
+
#### Npm install
|
|
21
15
|
|
|
16
|
+
npm μμ λ€μκ³Ό κ°μ λͺ
λ Ήμ΄λ₯Ό ν΅ν΄ whatapμ μ€μΉ ν μ μμ΅λλ€.
|
|
22
17
|
|
|
18
|
+
$ npm install whatap
|
|
23
19
|
|
|
24
|
-
## π Configuration
|
|
25
20
|
|
|
26
|
-
Copy the `whatap.conf` file from `node_modules/whatap` to your project root directory and configure it as follows:
|
|
27
21
|
|
|
28
|
-
|
|
29
|
-
# Essential Settings
|
|
30
|
-
license=XXXXXXXXXXXXXX-XXXXXXXXXXXXXX-XXXXXXXXXXXXXX
|
|
31
|
-
whatap.server.host=XXX.XXX.XXX.XXX
|
|
22
|
+

|
|
32
23
|
|
|
33
|
-
|
|
34
|
-
app_name=MyNodeApp # Application name
|
|
35
|
-
app_process_name=node # Process name
|
|
36
|
-
```
|
|
24
|
+
#### License Key
|
|
37
25
|
|
|
26
|
+
node\_modules/whatapμ μλ whatap.confνμΌμ λ£¨νΈ λλ ν λ¦¬λ‘ λ³΅μ¬ ν
|
|
27
|
+
λΌμ΄μΌμ€ ν€λ₯Ό λ°κΈλ°μ ν μΆκ° ν΄ μ£ΌμΈμ.
|
|
38
28
|
|
|
29
|
+
whatap.conf νμΌμ λ€μκ³Ό κ°μ λ΄μ©μ ν¬ν¨ν©λλ€.
|
|
39
30
|
|
|
40
|
-
|
|
31
|
+
license=XXXXXXXXXXXXXX-XXXXXXXXXXXXXX-XXXXXXXXXXXXXX
|
|
32
|
+
whatap.server.host=XXX.XXX.XXX.XXX
|
|
41
33
|
|
|
42
|
-
### Agent Initialization
|
|
43
34
|
|
|
44
|
-
To activate WhaTap monitoring in your Node.js application, add the WhaTap agent initialization code to your application's **top-level entry point file**.
|
|
45
35
|
|
|
46
|
-
|
|
36
|
+

|
|
47
37
|
|
|
48
|
-
|
|
38
|
+
#### Usage
|
|
49
39
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var WhatapAgent = require('whatap').NodeAgent;
|
|
40
|
+
λ£¨νΈ λλ ν 리μ μμΉν Node.js μ ν리μΌμ΄μ
μμ Whatap λͺ¨λν°λ§ κΈ°λ₯μ νμ±ννλ €λ©΄,
|
|
41
|
+
μ ν리μΌμ΄μ
μ μ§μ
μ νμΌμ Whatap μμ΄μ νΈλ₯Ό μ΄κΈ°ννλ μ½λλ₯Ό μΆκ°ν΄μΌ ν©λλ€.
|
|
53
42
|
|
|
54
|
-
|
|
55
|
-
const express = require('express');
|
|
56
|
-
const app = express();
|
|
43
|
+
Node.js μ ν리μΌμ΄μ
μ Whatap λͺ¨λν°λ§μ μ μ©νλ λ°©λ²μ λͺ¨λ μμ€ν
μ μ’
λ₯(CommonJS λλ ECMAScript Modules, ESM)μ λ°λΌ μ½κ° λ€λ¦
λλ€. μλμμλ λ κ°μ§ λͺ¨λ μμ€ν
μ λν΄ Whatap μμ΄μ νΈλ₯Ό μ΄κΈ°ννκ³ μ¬μ©νλ λ°©λ²μ μ€λͺ
ν©λλ€.
|
|
57
44
|
|
|
58
|
-
// Application logic...
|
|
59
|
-
```
|
|
60
45
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
46
|
+
#### CommonJS λͺ¨λ μμ€ν
μ¬μ© μ
|
|
47
|
+
Whatap μμ΄μ νΈλ₯Ό CommonJS λ°©μμΌλ‘ κ°μ Έμ€κ³ μ΄κΈ°ννλ €λ©΄, λ€μ μ½λλ₯Ό μ ν리μΌμ΄μ
μ μ§μ
μ νμΌμ μΆκ°νμΈμ:
|
|
48
|
+
|
|
49
|
+
var WhatapAgent = require('whatap').NodeAgent;
|
|
65
50
|
|
|
66
|
-
|
|
51
|
+
#### ECMAScript λͺ¨λ(ESM) μμ€ν
μ¬μ© μ
|
|
52
|
+
ESM λ°©μμΌλ‘ Whatap μμ΄μ νΈλ₯Ό κ°μ Έμ€κ³ μ¬μ©νλ €λ©΄, λ€μκ³Ό κ°μ΄ μ½λλ₯Ό μμ±νμΈμ:
|
|
67
53
|
|
|
68
|
-
|
|
54
|
+
import WhatapAgent from 'whatap';
|
|
55
|
+
WhatapAgent.NodeAgent;
|
|
69
56
|
|
|
70
|
-
|
|
71
|
-
node -r whatap app.js
|
|
72
|
-
```
|
|
57
|
+

|
|
73
58
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
```javascript
|
|
77
|
-
// app.js (or server.js)
|
|
78
|
-
import WhatapAgent from 'whatap';
|
|
79
|
-
WhatapAgent.NodeAgent;
|
|
80
|
-
|
|
81
|
-
// Import other modules after
|
|
82
|
-
import express from 'express';
|
|
83
|
-
const app = express();
|
|
84
|
-
|
|
85
|
-
// Application logic...
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
## β
Run Application
|
|
89
|
-
|
|
90
|
-
Once the agent configuration is complete, restart your application to begin monitoring:
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
# Direct Node.js execution
|
|
94
|
-
node app.js
|
|
95
|
-
|
|
96
|
-
# Using npm scripts
|
|
97
|
-
npm start
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
### Monitoring Dashboard
|
|
101
|
-
|
|
102
|
-
Once your application is running, you can view the following information in the WhaTap console:
|
|
103
|
-
|
|
104
|
-
- π **Real-time Transactions**: HTTP requests, database query tracking
|
|
105
|
-
- π **Performance Metrics**: CPU, memory, GC information
|
|
106
|
-
- π¨ **Error Monitoring**: Application error and exception tracking
|
|
107
|
-
- π **Statistical Analysis**: Response time and throughput statistics
|
|
59
|
+
#### Restart
|
|
108
60
|
|
|
61
|
+
μ΄ν리μΌμ΄μ
μλ²κ° μ€νλλ©΄ μ ν리μΌμ΄μ
μ λͺ¨λν°λ§ μ 보λ₯Ό μμ§νκΈ°
|
|
62
|
+
μμν©λλ€.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2016 the WHATAP project authors. All rights reserved.
|
|
3
|
+
* Use of this source code is governed by a license that
|
|
4
|
+
* can be found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
var WHATAP_CONF = process.env.WHATAP_CONF || 'whatap';
|
|
8
|
+
|
|
9
|
+
var fs = require('fs'),
|
|
10
|
+
path = require('path'),
|
|
11
|
+
EventEmitter = require('events').EventEmitter;
|
|
12
|
+
|
|
13
|
+
var DataInputX = require('./../io/data-inputx'),
|
|
14
|
+
secu = require('./../net/security-master'),
|
|
15
|
+
NodeUtil = require('./../util/nodeutil'),
|
|
16
|
+
HashUtil = require('./../util/hashutil'),
|
|
17
|
+
StringUtil = require('./../util/string-util'),
|
|
18
|
+
Cypher = require('./../util/cypher'),
|
|
19
|
+
ConfigDefault = require("./config-default"),
|
|
20
|
+
MapValue = require('./../value/map-value'),
|
|
21
|
+
ConfigUtil = require('../util/config-util'),
|
|
22
|
+
SystemUtil = require('../util/system-util'),
|
|
23
|
+
LinuxProcStatUtil = require('./../counter/task/res/util/linuxProcStatUtil'),
|
|
24
|
+
lastModifiedTime = 0;
|
|
25
|
+
|
|
26
|
+
var num = ConfigUtil.num;
|
|
27
|
+
var str = ConfigUtil.str;
|
|
28
|
+
var bool = ConfigUtil.bool;
|
|
29
|
+
|
|
30
|
+
var ConfSysMon = function() {
|
|
31
|
+
var self = this;
|
|
32
|
+
EventEmitter.call(this);
|
|
33
|
+
|
|
34
|
+
this.aws_ecs_enabled = false;
|
|
35
|
+
this.linux_proc_stat_enabled = false;
|
|
36
|
+
this.shell_perf_enabled = false;
|
|
37
|
+
|
|
38
|
+
this.correction_factor_cpu = 1;
|
|
39
|
+
this.correction_factor_pcpu = 1;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
ConfSysMon.prototype = new EventEmitter();
|
|
43
|
+
ConfSysMon.prototype.constructor = ConfSysMon;
|
|
44
|
+
|
|
45
|
+
ConfSysMon.prototype.apply = function(properties) {
|
|
46
|
+
|
|
47
|
+
try {
|
|
48
|
+
var meta_uri = process.env["ECS_CONTAINER_METADATA_URI"];
|
|
49
|
+
this.aws_ecs_enabled = meta_uri != null;
|
|
50
|
+
if (this.aws_ecs_enabled) {
|
|
51
|
+
this.aws_ecs_enabled = bool(conf["whatap.ecs.enabled"], true);
|
|
52
|
+
}
|
|
53
|
+
} catch (e) {
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
this.linux_proc_stat_enabled = bool(conf["linux_proc_stat_enabled"], false);
|
|
57
|
+
this.shell_perf_enabled = bool(conf["shell_perf_enabled"], false);
|
|
58
|
+
|
|
59
|
+
this.correction_factor_cpu = num(conf["correction_factor_cpu"], 1);
|
|
60
|
+
this.correction_factor_pcpu = num(conf["correction_factor_pcpu"], 1);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
ConfSysMon.prototype.SysType = {
|
|
64
|
+
NONE: 'NONE',
|
|
65
|
+
ECS: 'ECS',
|
|
66
|
+
KUBE: 'KUBE',
|
|
67
|
+
LINUX: 'LINUX',
|
|
68
|
+
JMX: 'JMX',
|
|
69
|
+
SHELL: 'SHELL',
|
|
70
|
+
SIGAR: 'SIGAR'
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
ConfSysMon.prototype.findType = function(){
|
|
74
|
+
var t = this.SysType.NONE;
|
|
75
|
+
|
|
76
|
+
// dynamic reload!!!
|
|
77
|
+
var Configure = require('./configure');
|
|
78
|
+
|
|
79
|
+
if (Configure.whatap_micro_enabled || process.env.WHATAP_MICRO_ENABLED === "true") {
|
|
80
|
+
t = this.SysType.KUBE;
|
|
81
|
+
} else if (this.aws_ecs_enabled) {
|
|
82
|
+
t = this.SysType.ECS;
|
|
83
|
+
} else if (this.linux_proc_stat_enabled) {
|
|
84
|
+
if (SystemUtil.IS_LINUX && LinuxProcStatUtil.isLinux()) {
|
|
85
|
+
t = this.SysType.LINUX;
|
|
86
|
+
} else {
|
|
87
|
+
t = this.SysType.JMX;
|
|
88
|
+
}
|
|
89
|
+
} else if (this.shell_perf_enabled) {
|
|
90
|
+
t = this.SysType.SHELL;
|
|
91
|
+
} /*else if (this.sigar_enabled) {
|
|
92
|
+
t = this.SysType.SIGAR;
|
|
93
|
+
} */else {
|
|
94
|
+
t = this.SysType.JMX;
|
|
95
|
+
}
|
|
96
|
+
return t;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const conf = new ConfSysMon();
|
|
100
|
+
|
|
101
|
+
module.exports = conf;
|
|
@@ -216,9 +216,7 @@ var ConfigDefault = {
|
|
|
216
216
|
|
|
217
217
|
"_trace_mtrace_poid_key": str("mtrace_poid_key", "x-wtap-po"),
|
|
218
218
|
"_trace_mtrace_caller_key": str("mtrace_caller_key","x-wtap-mst"),
|
|
219
|
-
"_trace_mtrace_callee_key": str("mtrace_callee_key","x-wtap-tx"),
|
|
220
219
|
"_trace_mtrace_spec_key1": str("mtrace_spec_key", "x-wtap-sp1"),
|
|
221
|
-
"_trace_mtrace_ip": str("mtrace_ip", "x-wtap-ip"),
|
|
222
220
|
|
|
223
221
|
// add apdex 2020.11.13
|
|
224
222
|
"apdex_time_t": num('apdex_time_t', 1200),
|
|
@@ -278,7 +276,16 @@ var ConfigDefault = {
|
|
|
278
276
|
"prisma_read_func_name": str("prisma_read_func_name", "read"),
|
|
279
277
|
"prisma_database_url_name": str("prisma_database_url_name", "DATABASE_URL"),
|
|
280
278
|
|
|
281
|
-
"metering_tagcount_enabled": bool("metering_tagcount_enabled", false)
|
|
279
|
+
"metering_tagcount_enabled": bool("metering_tagcount_enabled", false),
|
|
280
|
+
"profile_redis_param_enabled": bool("profile_redis_param_enabled", false),
|
|
281
|
+
"profile_mongodb_param_enabled": bool("profile_mongodb_param_enabled", false),
|
|
282
|
+
|
|
283
|
+
"trace_mtrace_traceparent_key": str("trace_mtrace_traceparent_key", "traceparent"),
|
|
284
|
+
"txtext_txname_enabled": bool("txtext_txname_enabled", true),
|
|
285
|
+
"ignore_env_variable_set": str("ignore_env_variable_set", ""),
|
|
286
|
+
"profile_httpc_start_step_enabled": bool("profile_httpc_start_step_enabled", false),
|
|
287
|
+
"perfx_nodejs_gc_enabled": bool("perfx_nodejs_gc_enabled", true)
|
|
288
|
+
|
|
282
289
|
};
|
|
283
290
|
|
|
284
291
|
ConfigDefault._hook_method_ignore_prefix = ConfigDefault.hook_method_ignore_prefixes.split(',');
|