Skip to content

Commit 67783e7

Browse files
committed
fix(cls): use @risingstack/continuation-local-storage
1 parent 466b20a commit 67783e7

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

lib/agent/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var debug = require('debug')('risingstack/trace')
22
var microtime = require('microtime')
33
var uuid = require('node-uuid')
4-
var cls = require('continuation-local-storage')
4+
var cls = require('@risingstack/continuation-local-storage')
55
var defaults = require('lodash.defaults')
66
var isNumber = require('lodash.isnumber')
77

lib/instrumentations/index.spec.e2e.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ before(function () {
66
agent: {
77
bind: function (fn) {
88
return this.ns.bind(fn)
9-
}.bind(this)
9+
}.bind(this),
10+
getConfig: function () {
11+
return {
12+
whiteListHosts: []
13+
}
14+
},
15+
bindEmitter: function () {}
1016
}
1117
})
1218
})

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"url": "https://github.com/RisingStack/trace-nodejs/issues"
4444
},
4545
"dependencies": {
46+
"@risingstack/continuation-local-storage": "1.0.2",
4647
"bl": "1.0.1",
47-
"continuation-local-storage": "3.1.6",
4848
"debug": "2.2.0",
4949
"event-loop-stats": "1.0.0",
5050
"gc-stats": "1.0.0",

0 commit comments

Comments
 (0)