whatap 1.0.1 → 1.0.3-canary.0

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 CHANGED
@@ -1,6 +1,4 @@
1
1
 
2
- [![WhaTap Logo](https://login.whatap.io/static/whatap_logo.png)](http://www.whatap.io/)
3
-
4
2
  # 🚀 WhaTap Node.js Agent
5
3
 
6
4
  > **Comprehensive Node.js Application Performance Monitoring (APM) Solution**
package/lib/core/agent.js CHANGED
@@ -866,6 +866,12 @@ NodeAgent.prototype.init = function(cb) {
866
866
 
867
867
  self.findRoot();
868
868
 
869
+ // Set WHATAP_HOME if not exists - use application root directory
870
+ if (!process.env.WHATAP_HOME) {
871
+ process.env.WHATAP_HOME = process.cwd() || self._conf['app.root'];
872
+ Logger.print('WHATAP-114', 'WHATAP_HOME not set, using application root: ' + process.env.WHATAP_HOME, false);
873
+ }
874
+
869
875
  Logger.initializer.process();
870
876
  Logger.print('WHATAP-110', 'Start initialize WhaTap Agent... Root[' + self._conf['app.root'] + ']', true);
871
877
 
@@ -185,7 +185,7 @@ var createQueryWrapper = function(agent, dbcUrl) {
185
185
  if (typeof finalSql === 'string' && finalSql.length > 0) {
186
186
  try {
187
187
  psql = escapeLiteral(finalSql);
188
- Logger.print('WHATAP-SQL-DEBUG', 'Processing SQL: ' + finalSql.substring(0, 200), false);
188
+ // Logger.print('WHATAP-SQL-DEBUG', 'Processing SQL: ' + finalSql.substring(0, 200), false);
189
189
  } catch (e) {
190
190
  Logger.printError('WHATAP-215', 'MariaObserver escapeliteral error', e, false);
191
191
  }
@@ -235,7 +235,7 @@ var createQueryWrapper = function(agent, dbcUrl, mysqlModule) {
235
235
  if (typeof finalSql === 'string' && finalSql.length > 0) {
236
236
  try {
237
237
  psql = escapeLiteral(finalSql);
238
- Logger.print('WHATAP-SQL-DEBUG', 'Processing SQL: ' + finalSql.substring(0, 200), false);
238
+ // Logger.print('WHATAP-SQL-DEBUG', 'Processing SQL: ' + finalSql.substring(0, 200), false);
239
239
  } catch (e) {
240
240
  Logger.printError('WHATAP-233', 'MysqlObserver escapeliteral error', e, false);
241
241
  }
@@ -116,7 +116,7 @@ var createQueryWrapper = function(isPromise = false, dbcUrl, mod) {
116
116
  if (typeof finalSql === 'string' && finalSql.length > 0) {
117
117
  try {
118
118
  psql = escapeLiteral(finalSql);
119
- Logger.print('WHATAP-SQL-DEBUG', 'Processing SQL [' + queryId + ']: ' + finalSql.substring(0, 200), false);
119
+ // Logger.print('WHATAP-SQL-DEBUG', 'Processing SQL [' + queryId + ']: ' + finalSql.substring(0, 200), false);
120
120
  } catch (e) {
121
121
  Logger.printError('WHATAP-225', 'Mysql2Observer escapeliteral error', e, false);
122
122
  }
@@ -210,7 +210,7 @@ var createExecuteWrapper = function(agent, dbcUrl) {
210
210
  if (typeof finalSql === 'string' && finalSql.length > 0) {
211
211
  try {
212
212
  psql = escapeLiteral(finalSql);
213
- Logger.print('WHATAP-SQL-DEBUG', 'Processing SQL: ' + finalSql.substring(0, 200), false);
213
+ // Logger.print('WHATAP-SQL-DEBUG', 'Processing SQL: ' + finalSql.substring(0, 200), false);
214
214
  } catch (e) {
215
215
  Logger.printError('WHATAP-252', 'OracleObserver escapeliteral error', e, false);
216
216
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "whatap",
3
3
  "homepage": "http://www.whatap.io",
4
- "version": "1.0.1",
4
+ "version": "1.0.3-canary.0",
5
5
  "releaseDate": "20250924",
6
6
  "description": "Monitoring and Profiling Service",
7
7
  "main": "index.js",
@@ -15,7 +15,8 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "long": "^3.2.0",
18
- "proper-lockfile": "^4.1.2"
18
+ "proper-lockfile": "^4.1.2",
19
+ "uuid": "^11.1.0"
19
20
  },
20
21
  "devDependencies": {
21
22
  "long": "^3.2.0"