Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 0825262

Browse files
silva-fabiokjin
authored andcommitted
fix: wrong return for outgoingRequest causing some tests failing in node 6
1 parent ab7f722 commit 0825262

File tree

1 file changed

+1
-2
lines changed
  • packages/opencensus-instrumentation-http/src

1 file changed

+1
-2
lines changed

packages/opencensus-instrumentation-http/src/http.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ export class HttpPlugin extends classes.BasePlugin {
192192
plugin.logger.debug('outgoingRequest starting a child span');
193193
const span: types.Span = plugin.tracer.startChildSpan(
194194
traceOptions.name, traceOptions.type);
195-
return (span: types.Span) =>
196-
plugin.makeRequestTrace(request, arguments, plugin);
195+
return (plugin.makeRequestTrace(request, arguments, plugin))(span);
197196
}
198197
};
199198
};

0 commit comments

Comments
 (0)