From fd2d62990c6c68bef97f27bbdcde19f6bccb756b Mon Sep 17 00:00:00 2001 From: Daniel Dyla Date: Tue, 22 Sep 2020 08:01:22 -0400 Subject: [PATCH] chore: use modulerequests --- packages/opentelemetry-plugin-http/src/http.ts | 3 +-- packages/opentelemetry-plugin-https/src/https.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/opentelemetry-plugin-http/src/http.ts b/packages/opentelemetry-plugin-http/src/http.ts index 88b05eb838..fbca014ece 100644 --- a/packages/opentelemetry-plugin-http/src/http.ts +++ b/packages/opentelemetry-plugin-http/src/http.ts @@ -32,7 +32,6 @@ import { import type { ClientRequest, IncomingMessage, - request, RequestOptions, ServerResponse, } from 'http'; @@ -95,7 +94,7 @@ export class HttpPlugin extends BasePlugin { shimmer.wrap( this._moduleExports, 'get', - this._getPatchOutgoingGetFunction(request) + this._getPatchOutgoingGetFunction(this._moduleExports.request) ); } diff --git a/packages/opentelemetry-plugin-https/src/https.ts b/packages/opentelemetry-plugin-https/src/https.ts index 8786309e2e..40dc543a9a 100644 --- a/packages/opentelemetry-plugin-https/src/https.ts +++ b/packages/opentelemetry-plugin-https/src/https.ts @@ -69,7 +69,7 @@ export class HttpsPlugin extends HttpPlugin { shimmer.wrap( this._moduleExports, 'get', - this._getPatchHttpsOutgoingGetFunction(https.request) + this._getPatchHttpsOutgoingGetFunction(this._moduleExports.request) ); }