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.
Files changed (198) hide show
  1. package/README.md +32 -78
  2. package/lib/conf/conf-sys-mon.js +101 -0
  3. package/lib/conf/config-default.js +10 -3
  4. package/lib/conf/configure.js +369 -349
  5. package/lib/conf/license.js +1 -1
  6. package/lib/control/cmd-config.js +24 -0
  7. package/lib/control/control-handler.js +367 -0
  8. package/lib/control/packagectr-helper.js +34 -3
  9. package/lib/core/agent.js +176 -882
  10. package/lib/core/interceptor.js +6 -6
  11. package/lib/core/request-agent.js +27 -0
  12. package/lib/core/shimmer.js +82 -36
  13. package/lib/counter/counter-manager.js +79 -8
  14. package/lib/counter/meter/meter-activex.js +67 -0
  15. package/lib/counter/meter/meter-httpc.js +57 -0
  16. package/lib/counter/meter/meter-resource.js +9 -0
  17. package/lib/counter/meter/meter-service.js +168 -0
  18. package/lib/counter/meter/meter-socket.io.js +51 -0
  19. package/lib/counter/meter/meter-sql.js +71 -0
  20. package/lib/counter/meter/meter-users.js +58 -0
  21. package/lib/counter/meter.js +183 -0
  22. package/lib/counter/task/activetransaction.js +68 -17
  23. package/lib/counter/task/agentinfo.js +107 -0
  24. package/lib/{system β†’ counter/task}/gc-action.js +27 -74
  25. package/lib/counter/task/gcstat.js +34 -0
  26. package/lib/counter/task/heapmem.js +25 -0
  27. package/lib/counter/task/httpc.js +76 -0
  28. package/lib/counter/task/metering-info.js +125 -0
  29. package/lib/counter/task/proc-cpu.js +29 -0
  30. package/lib/counter/task/realtimeuser.js +31 -0
  31. package/lib/counter/task/res/systemECSTask.js +39 -0
  32. package/lib/counter/task/res/systemKubeTask.js +53 -0
  33. package/lib/counter/task/res/util/awsEcsClientThread.js +218 -0
  34. package/lib/counter/task/res/util/linuxProcStatUtil.js +14 -0
  35. package/lib/counter/task/res-sys-cpu.js +62 -0
  36. package/lib/counter/task/service.js +202 -0
  37. package/lib/counter/task/socketio.js +30 -0
  38. package/lib/counter/task/sql.js +105 -0
  39. package/lib/counter/task/systemperf.js +43 -0
  40. package/lib/data/datapack-sender.js +289 -0
  41. package/lib/data/dataprofile-agent.js +162 -0
  42. package/lib/data/datatext-agent.js +135 -0
  43. package/lib/data/event-level.js +15 -0
  44. package/lib/data/test.js +49 -0
  45. package/lib/data/zipprofile.js +197 -0
  46. package/lib/env/constants.js +21 -0
  47. package/lib/error/error-handler.js +437 -0
  48. package/lib/io/data-inputx.js +13 -3
  49. package/lib/io/data-outputx.js +268 -206
  50. package/lib/kube/kube-client.js +144 -0
  51. package/lib/lang/text-types.js +58 -0
  52. package/lib/logger.js +6 -6
  53. package/lib/logsink/line-log-util.js +87 -0
  54. package/lib/logsink/line-log.js +12 -0
  55. package/lib/logsink/log-sender.js +78 -0
  56. package/lib/logsink/log-tracer.js +40 -0
  57. package/lib/logsink/sender-util.js +56 -0
  58. package/lib/logsink/zip/zip-send.js +177 -0
  59. package/lib/net/netflag.js +55 -0
  60. package/lib/net/receiver.js +66 -0
  61. package/lib/net/security-master.js +139 -20
  62. package/lib/net/sender.js +141 -0
  63. package/lib/net/tcp-return.js +18 -0
  64. package/lib/net/tcp-session.js +286 -0
  65. package/lib/net/tcpreq-client-proxy.js +70 -0
  66. package/lib/net/tcprequest-mgr.js +58 -0
  67. package/lib/observers/apollo-server-observer.js +33 -27
  68. package/lib/observers/cluster-observer.js +22 -0
  69. package/lib/observers/express-observer.js +215 -0
  70. package/lib/observers/file-observer.js +184 -0
  71. package/lib/observers/global-observer.js +155 -80
  72. package/lib/observers/grpc-observer.js +336 -0
  73. package/lib/observers/http-observer.js +666 -236
  74. package/lib/observers/maria-observer.js +204 -362
  75. package/lib/observers/memcached-observer.js +56 -0
  76. package/lib/observers/mongo-observer.js +317 -0
  77. package/lib/observers/mongodb-observer.js +169 -226
  78. package/lib/observers/mongoose-observer.js +518 -323
  79. package/lib/observers/mssql-observer.js +177 -418
  80. package/lib/observers/mysql-observer.js +342 -449
  81. package/lib/observers/mysql2-observer.js +396 -358
  82. package/lib/observers/net-observer.js +77 -0
  83. package/lib/observers/oracle-observer.js +559 -384
  84. package/lib/observers/pgsql-observer.js +231 -489
  85. package/lib/observers/prisma-observer.js +303 -92
  86. package/lib/observers/process-observer.js +79 -35
  87. package/lib/observers/promise-observer.js +31 -0
  88. package/lib/observers/redis-observer.js +166 -331
  89. package/lib/observers/schedule-observer.js +67 -0
  90. package/lib/observers/socket.io-observer.js +226 -187
  91. package/lib/observers/stream-observer.js +19 -0
  92. package/lib/observers/thrift-observer.js +197 -0
  93. package/lib/observers/websocket-observer.js +175 -301
  94. package/lib/pack/activestack-pack.js +55 -0
  95. package/lib/pack/apenum.js +8 -0
  96. package/lib/pack/counter-pack.js +3 -0
  97. package/lib/pack/errorsnap-pack.js +69 -0
  98. package/lib/pack/event-pack.js +54 -0
  99. package/lib/pack/hitmap-pack.js +63 -0
  100. package/lib/pack/hitmap-pack1.js +152 -0
  101. package/lib/pack/log-sink-pack.js +14 -52
  102. package/lib/pack/netstat.js +15 -0
  103. package/lib/pack/otype.js +7 -0
  104. package/lib/pack/profile-pack.js +49 -0
  105. package/lib/pack/realtimeuser-pack.js +41 -0
  106. package/lib/pack/stat-general-pack.js +96 -0
  107. package/lib/pack/staterror-pack.js +120 -0
  108. package/lib/pack/stathttpc-pack.js +66 -0
  109. package/lib/pack/stathttpc-rec.js +78 -0
  110. package/lib/pack/statremote-pack.js +46 -0
  111. package/lib/pack/statservice-pack.js +63 -0
  112. package/lib/pack/statservice-pack1.js +88 -0
  113. package/lib/pack/statservice-rec.js +292 -0
  114. package/lib/pack/statservice-rec_dep.js +151 -0
  115. package/lib/pack/statsql-pack.js +69 -0
  116. package/lib/pack/statsql-rec.js +100 -0
  117. package/lib/pack/statuseragent-pack.js +44 -0
  118. package/lib/pack/tagcount-pack.js +4 -4
  119. package/lib/pack/tagctr.js +15 -0
  120. package/lib/pack/text-pack.js +50 -0
  121. package/lib/pack/time-count.js +25 -0
  122. package/lib/pack/websocket.js +15 -0
  123. package/lib/pack/zip-pack.js +70 -0
  124. package/lib/pii/pii-item.js +31 -0
  125. package/lib/pii/pii-mask.js +174 -0
  126. package/lib/plugin/plugin-loadermanager.js +57 -0
  127. package/lib/plugin/plugin.js +75 -0
  128. package/lib/service/tx-record.js +332 -0
  129. package/lib/stat/stat-error.js +116 -0
  130. package/lib/stat/stat-httpc.js +98 -0
  131. package/lib/stat/stat-remote-ip.js +46 -0
  132. package/lib/stat/stat-remote-ipurl.js +88 -0
  133. package/lib/stat/stat-sql.js +113 -0
  134. package/lib/stat/stat-tranx.js +58 -0
  135. package/lib/stat/stat-tx-caller.js +160 -0
  136. package/lib/stat/stat-tx-domain.js +111 -0
  137. package/lib/stat/stat-tx-referer.js +112 -0
  138. package/lib/stat/stat-useragent.js +48 -0
  139. package/lib/stat/timingsender.js +76 -0
  140. package/lib/step/activestack-step.js +38 -0
  141. package/lib/step/dbc-step.js +36 -0
  142. package/lib/step/http-stepx.js +67 -0
  143. package/lib/step/message-step.js +40 -0
  144. package/lib/step/method-stepx.js +45 -0
  145. package/lib/step/resultset-step.js +40 -0
  146. package/lib/step/securemsg-step.js +44 -0
  147. package/lib/step/socket-step.js +46 -0
  148. package/lib/step/sql-stepx.js +68 -0
  149. package/lib/step/sqlxtype.js +16 -0
  150. package/lib/step/step.js +66 -0
  151. package/lib/step/stepenum.js +54 -0
  152. package/lib/topology/link.js +63 -0
  153. package/lib/topology/nodeinfo.js +123 -0
  154. package/lib/topology/status-detector.js +111 -0
  155. package/lib/trace/trace-context-manager.js +113 -25
  156. package/lib/trace/trace-context.js +21 -7
  157. package/lib/trace/trace-httpc.js +17 -11
  158. package/lib/trace/trace-sql.js +29 -21
  159. package/lib/util/anylist.js +103 -0
  160. package/lib/util/cardinality/hyperloglog.js +106 -0
  161. package/lib/util/cardinality/murmurhash.js +31 -0
  162. package/lib/util/cardinality/registerset.js +75 -0
  163. package/lib/util/errordata.js +21 -0
  164. package/lib/util/escape-literal-sql.js +5 -5
  165. package/lib/util/hashutil.js +18 -18
  166. package/lib/util/iputil_x.js +527 -0
  167. package/lib/util/keygen.js +0 -3
  168. package/lib/util/kube-util.js +73 -0
  169. package/lib/util/linkedset.js +1 -2
  170. package/lib/util/nodeutil.js +2 -1
  171. package/lib/util/paramsecurity.js +80 -0
  172. package/lib/util/pre-process.js +13 -0
  173. package/lib/util/process-seq.js +166 -0
  174. package/lib/util/property-util.js +36 -0
  175. package/lib/util/request-queue.js +70 -0
  176. package/lib/util/requestdouble-queue.js +72 -0
  177. package/lib/util/resourceprofile.js +157 -0
  178. package/lib/util/stop-watch.js +30 -0
  179. package/lib/util/system-util.js +10 -0
  180. package/lib/util/userid-util.js +57 -0
  181. package/lib/value/map-value.js +3 -2
  182. package/package.json +9 -4
  183. package/whatap.conf +1 -4
  184. package/agent/darwin/arm64/whatap_nodejs +0 -0
  185. package/agent/linux/amd64/whatap_nodejs +0 -0
  186. package/agent/linux/arm64/whatap_nodejs +0 -0
  187. package/build.txt +0 -4
  188. package/lib/observers/ioredis-observer.js +0 -294
  189. package/lib/udp/async_sender.js +0 -119
  190. package/lib/udp/index.js +0 -17
  191. package/lib/udp/packet_enum.js +0 -52
  192. package/lib/udp/packet_queue.js +0 -69
  193. package/lib/udp/packet_type_enum.js +0 -33
  194. package/lib/udp/param_def.js +0 -72
  195. package/lib/udp/udp_session.js +0 -336
  196. package/lib/util/sql-util.js +0 -178
  197. package/lib/util/trace-helper.js +0 -91
  198. package/lib/util/transfer.js +0 -58
package/README.md CHANGED
@@ -1,108 +1,62 @@
1
1
 
2
2
  [![WhaTap Logo](https://login.whatap.io/static/whatap_logo.png)](http://www.whatap.io/)
3
3
 
4
- # πŸš€ WhaTap Node.js Agent
4
+ # Whatap for Node.js
5
5
 
6
- > **Comprehensive Node.js Application Performance Monitoring (APM) Solution**
6
+ Whatap allows for application performance monitoring.
7
7
 
8
- WhaTap Node.js Agent provides real-time monitoring, tracing, and performance analysis capabilities as a professional APM agent.
8
+ Works on Linux(32bit, 64bit), MacOSx(32bit, 64bit), Windows(32bit, 64bit).
9
9
 
10
- ## πŸ“‹ Supported Environment
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
- You can install WhaTap using npm with the following command:
12
+ ![step01](http://apm.whatap.io/images/icon_step01.png)
17
13
 
18
- ```bash
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
- ```ini
29
- # Essential Settings
30
- license=XXXXXXXXXXXXXX-XXXXXXXXXXXXXX-XXXXXXXXXXXXXX
31
- whatap.server.host=XXX.XXX.XXX.XXX
22
+ ![step02](http://apm.whatap.io/images/icon_step02.png)
32
23
 
33
- # Application Identification Settings
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
- ## πŸš€ Usage
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
- > **⚠️ Important**: The WhaTap agent must be loaded before all other modules.
36
+ ![step03](http://apm.whatap.io/images/icon_step03.png)
47
37
 
48
- ### Method 1: Using require('whatap') in Code
38
+ #### Usage
49
39
 
50
- ```javascript
51
- // app.js (or server.js)
52
- var WhatapAgent = require('whatap').NodeAgent;
40
+ 루트 디렉토리에 μœ„μΉ˜ν•œ Node.js μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ—μ„œ Whatap λͺ¨λ‹ˆν„°λ§ κΈ°λŠ₯을 ν™œμ„±ν™”ν•˜λ €λ©΄,
41
+ μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ˜ μ§„μž…μ  νŒŒμΌμ— Whatap μ—μ΄μ „νŠΈλ₯Ό μ΄ˆκΈ°ν™”ν•˜λŠ” μ½”λ“œλ₯Ό μΆ”κ°€ν•΄μ•Ό ν•©λ‹ˆλ‹€.
53
42
 
54
- // Import other modules after
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
- Run with:
62
- ```bash
63
- node app.js
64
- ```
46
+ #### CommonJS λͺ¨λ“ˆ μ‹œμŠ€ν…œ μ‚¬μš© μ‹œ
47
+ Whatap μ—μ΄μ „νŠΈλ₯Ό CommonJS λ°©μ‹μœΌλ‘œ κ°€μ Έμ˜€κ³  μ΄ˆκΈ°ν™”ν•˜λ €λ©΄, λ‹€μŒ μ½”λ“œλ₯Ό μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ˜ μ§„μž…μ  νŒŒμΌμ— μΆ”κ°€ν•˜μ„Έμš”:
48
+
49
+ var WhatapAgent = require('whatap').NodeAgent;
65
50
 
66
- ### Method 2: Using -r flag (without code modification)
51
+ #### ECMAScript λͺ¨λ“ˆ(ESM) μ‹œμŠ€ν…œ μ‚¬μš© μ‹œ
52
+ ESM λ°©μ‹μœΌλ‘œ Whatap μ—μ΄μ „νŠΈλ₯Ό κ°€μ Έμ˜€κ³  μ‚¬μš©ν•˜λ €λ©΄, λ‹€μŒκ³Ό 같이 μ½”λ“œλ₯Ό μž‘μ„±ν•˜μ„Έμš”:
67
53
 
68
- If you prefer not to modify your application code, you can use the `-r` flag:
54
+ import WhatapAgent from 'whatap';
55
+ WhatapAgent.NodeAgent;
69
56
 
70
- ```bash
71
- node -r whatap app.js
72
- ```
57
+ ![step04](http://apm.whatap.io/images/icon_step04.png)
73
58
 
74
- ### ECMAScript Module (ESM) System
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(',');