whatap 0.4.83 → 0.4.84
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.
|
@@ -11,6 +11,7 @@ var IntKeyMap = require('../util/intkey-map'),
|
|
|
11
11
|
EventLevel = require('../data/event-level');
|
|
12
12
|
Long = require('long');
|
|
13
13
|
var { AsyncLocalStorage } = require('async_hooks');
|
|
14
|
+
var crypto = require('crypto');
|
|
14
15
|
|
|
15
16
|
function TraceContextManager() {
|
|
16
17
|
this.initialized = false;
|
|
@@ -64,7 +65,10 @@ TraceContextManager.prototype.end = function (id) {
|
|
|
64
65
|
// this._asyncLocalStorage.disable();
|
|
65
66
|
};
|
|
66
67
|
TraceContextManager.prototype.getNextId = function () {
|
|
67
|
-
|
|
68
|
+
var length = 16
|
|
69
|
+
var buffer = crypto.randomBytes(Math.ceil(length / 2));
|
|
70
|
+
|
|
71
|
+
this.nextId = buffer.toString('hex').substring(0, length);
|
|
68
72
|
return this.nextId;
|
|
69
73
|
};
|
|
70
74
|
TraceContextManager.prototype.getCurrentId = function () {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
20231212 15:46:55[WHATAP-001] <80146> Start initialize WhaTap Agent... Root[/Users/seunghunlee/workspace/nodejs_agent]
|
|
2
|
+
20231212 15:46:55[WHATAP-INIT] <80146> HttpObserver starting!
|
|
3
|
+
20231212 15:46:55[WHATAP-INIT] <80146> HttpObserver starting!
|
|
4
|
+
20231212 15:46:55[WHATAP-INIT] <80146> NetObserver starting!
|
|
5
|
+
20231212 15:46:55[WHTAP-loadObserves] <80146> unable to load mysql module
|
|
6
|
+
20231212 15:46:55[WHATAP-INIT] <80146> FileObserve starting!
|
|
7
|
+
20231212 15:46:55[WHATAP-203] <80146> Config file reloaded
|
|
8
|
+
20231212 15:46:55[WHATAP-101] <80146> Finish initialize configuration... false
|
|
9
|
+
20231212 15:46:55[WHATAP-110] <80146> [pcode=0,SECURE_KEY=]
|
|
10
|
+
20231212 15:46:55[WHATAP-170] <80146> [WhaTap Agent] now waiting for starting......
|
package/package.json
CHANGED