Skip to content

Commit bbc7145

Browse files
committed
fix(shimmer): change namespace to RS
1 parent 0a7494f commit bbc7145

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/wraps/shimmer.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ function wrap(nodule, noduleName, methods, wrapper) {
4848
if (!original) {
4949
return console.log('%s not defined, so not wrapping.', fqmn);
5050
}
51-
if (original.__NR_unwrap) {
51+
if (original.__RS_unwrap) {
5252
return console.log('%s already wrapped by agent.', fqmn);
5353
}
5454

5555
var wrapped = wrapper(original, method);
56-
wrapped.__NR_original = original;
57-
wrapped.__NR_unwrap = function __NR_unwrap() {
56+
wrapped.__RS_original = original;
57+
wrapped.__RS_unwrap = function __RS_unwrap() {
5858
nodule[method] = original;
5959
console.log('Removed instrumentation from %s.', fqmn);
6060
};
@@ -81,11 +81,11 @@ function unwrap(nodule, noduleName, method) {
8181
if (!wrapped) {
8282
return;
8383
}
84-
if (!wrapped.__NR_unwrap) {
84+
if (!wrapped.__RS_unwrap) {
8585
return;
8686
}
8787

88-
wrapped.__NR_unwrap();
88+
wrapped.__RS_unwrap();
8989
}
9090

9191
shimmer.wrap = wrap;

0 commit comments

Comments
 (0)