Closed flycloudOne closed 6 years ago
This would appear to be an issue in the brave-opentracing implementation, not handling a null parent passed to the asChildOf
method: see https://github.com/opentracing/opentracing-java/blob/master/opentracing-api/src/main/java/io/opentracing/Tracer.java#L115
I'll close this issue, but if you have any further question please re-open.
i have commit pull request, please review
异常信息如下:
java.lang.NullPointerException at brave.opentracing.BraveSpanBuilder.addReference(BraveSpanBuilder.java:72) at brave.opentracing.BraveSpanBuilder.asChildOf(BraveSpanBuilder.java:60) at brave.opentracing.BraveSpanBuilder.asChildOf(BraveSpanBuilder.java:41) at io.opentracing.contrib.web.servlet.filter.TracingFilter.doFilter(TracingFilter.java:154) at com.efounder.opentracing.OpentracingFilter.doFilter(OpentracingFilter.java:28)
filter 代码如下:
`public class OpentracingFilter implements Filter {
}`
请指教