Skip to content

Commit

Permalink
Bugfix for creating root spans through plugin API (#389)
Browse files Browse the repository at this point in the history
PR-URL: #389
  • Loading branch information
kjin authored Feb 17, 2017
1 parent 4c2f330 commit 8e30d88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/trace-plugin-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ function createRootSpan_(api, options, skipFrames) {
incomingTraceContext = api.agent_.parseContextFromHeader(options.traceContext);
}
incomingTraceContext = incomingTraceContext || {};
if (options.url && !api.agent_.shouldTrace(options.url, incomingTraceContext.options)) {
if (!api.agent_.shouldTrace(options.url || '',
incomingTraceContext.options)) {
return null;
}
var rootContext = api.agent_.createRootSpanData(options.name,
Expand Down

0 comments on commit 8e30d88

Please sign in to comment.