Skip to content

Commit

Permalink
chore: use modulerequests
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed Sep 22, 2020
1 parent a14347b commit fd2d629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/opentelemetry-plugin-http/src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import {
import type {
ClientRequest,
IncomingMessage,
request,
RequestOptions,
ServerResponse,
} from 'http';
Expand Down Expand Up @@ -95,7 +94,7 @@ export class HttpPlugin extends BasePlugin<Http> {
shimmer.wrap(
this._moduleExports,
'get',
this._getPatchOutgoingGetFunction(request)
this._getPatchOutgoingGetFunction(this._moduleExports.request)
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/opentelemetry-plugin-https/src/https.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class HttpsPlugin extends HttpPlugin {
shimmer.wrap(
this._moduleExports,
'get',
this._getPatchHttpsOutgoingGetFunction(https.request)
this._getPatchHttpsOutgoingGetFunction(this._moduleExports.request)
);
}

Expand Down

0 comments on commit fd2d629

Please sign in to comment.