We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb895da commit b5fbff5Copy full SHA for b5fbff5
src/index.ts
@@ -22,8 +22,8 @@ class UP9Monitor {
22
this.hostnameOverrides = options.hostnameOverrides ?? {};
23
setInterval(this.poll, POLL_INTERVAL_MS);
24
25
- this.requestLogger(require("http"), "http");
26
- this.requestLogger(require("https"), "https");
+ this.createTappedModule(require("http"), "http");
+ this.createTappedModule(require("https"), "https");
27
}
28
29
poll = async () => {
@@ -79,7 +79,7 @@ class UP9Monitor {
79
return getExpressMiddleware(this.sendMessage, this.serviceName);
80
81
82
- requestLogger = (httpModule, protocol) => {
+ createTappedModule = (httpModule, protocol) => {
83
httpModule.request = this.getHttpTappedFunc(httpModule.request, protocol);
84
httpModule.get = this.getHttpTappedFunc(httpModule.get, protocol);
85
0 commit comments