@contrast/patcher v1.24.0
@contrast/patcher
Monkey patching.
Notes on v5 Parity
This was ported directly from the node-agent but code with every dependency commented out. As a result there are differences in parity.
Removed dependency on
AsyncStorage.Old Behavior
Pre and post hooks only run when async storage context indicates an active request scope.
New Behavior
Hooks always run, independent of request scope.
Removed dependency on
agentandperf-logger.Old Behavior
A configuration setting would allow for logging of perf data of hooks and original function calls.
New Behavior
Performance logging of hooks is non-funcitonal.
Removed the dependency on
scopes.Old Behavior
One could specify a
scopein the hook options and the original function would be run in that scope. This allowed control over when to run instrumentaion based on current scope value.Also, the
alwaysRunoption forced hooks to run independent of scope state.New Behavior
There are no notions of scopes yet in v5. Patcher instrumentation always runs.
The
scopeandalwaysRunoptions are effectively ignored.Removed the dependency on
tracker.Old Behavior
We used to short-circuit
__addfunction if tracker showed all arguments to be untracked.New Behavior
We do not make this check; no short-circuiting.
11 months ago
11 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
10 months ago
7 months ago
7 months ago
7 months ago
6 months ago
5 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago