Skip to content

Commit 923e50d

Browse files
committed
fix(wrap): change stream wrap to http.Server
Originally the CLS wrap was bound to stream prototype for universal usage, but it conflicts with some libraries also using the stream module.
1 parent 3c1fa8d commit 923e50d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • lib/providers/httpTransaction/wraps

lib/providers/httpTransaction/wraps/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
var http = require('http');
2-
var stream = require('stream');
32

43
var getNamespace = require('continuation-local-storage').getNamespace;
54
var Shimmer = require('./shimmer');
@@ -25,7 +24,7 @@ function instrument (collector, config) {
2524
return require('./process._fatalException.js')(original, collector, config);
2625
});
2726

28-
getNamespace('trace').bindEmitter(stream.prototype);
27+
getNamespace('trace').bindEmitter(http.Server.prototype);
2928
}
3029

3130
function uninstrument () {

0 commit comments

Comments
 (0)