fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

fix panic when tracing is not enabled (#601)

+1 -1
+1 -1
trace/middleware.go
··· 24 24 25 25 // SpanContextFromContext retrieves the opentracing.SpanContext set on the context by Middleware 26 26 func SpanContextFromContext(ctx context.Context) opentracing.SpanContext { 27 - if v := ctx.Value(spanContextKey{}); v == nil { 27 + if v := ctx.Value(spanContextKey{}); v != nil { 28 28 return v.(opentracing.SpanContext) 29 29 } 30 30 return nil