Skip to content

Commit

Permalink
fix(shimmer): change namespace to RS
Browse files Browse the repository at this point in the history
  • Loading branch information
gergelyke committed Aug 4, 2015
1 parent 0a7494f commit bbc7145
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/wraps/shimmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ function wrap(nodule, noduleName, methods, wrapper) {
if (!original) {
return console.log('%s not defined, so not wrapping.', fqmn);
}
if (original.__NR_unwrap) {
if (original.__RS_unwrap) {
return console.log('%s already wrapped by agent.', fqmn);
}

var wrapped = wrapper(original, method);
wrapped.__NR_original = original;
wrapped.__NR_unwrap = function __NR_unwrap() {
wrapped.__RS_original = original;
wrapped.__RS_unwrap = function __RS_unwrap() {
nodule[method] = original;
console.log('Removed instrumentation from %s.', fqmn);
};
Expand All @@ -81,11 +81,11 @@ function unwrap(nodule, noduleName, method) {
if (!wrapped) {
return;
}
if (!wrapped.__NR_unwrap) {
if (!wrapped.__RS_unwrap) {
return;
}

wrapped.__NR_unwrap();
wrapped.__RS_unwrap();
}

shimmer.wrap = wrap;
Expand Down

0 comments on commit bbc7145

Please sign in to comment.