Skip to content

Commit

Permalink
Use nextSpan instead of joinSpan
Browse files Browse the repository at this point in the history
To account for the case when `contextOrFlags.context() == null`
  • Loading branch information
simao committed Jul 9, 2019
1 parent 4a8bc0c commit d836142
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ trait ZipkinTraceServiceLike {
(carrier: A, key: String) => getHeader(carrier, key).orNull
).extract(headers)

tracer.joinSpan(contextOrFlags.context())
tracer.nextSpan(contextOrFlags)
}

/**
Expand Down

0 comments on commit d836142

Please sign in to comment.