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

Configure Feed

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

Don't error when no span is in http request (#381)

author
Erik Seliger
committer
GitHub
date (Jun 23, 2022, 10:41 AM +0200) commit 50788994 parent 97b2fc2e
+1 -1
+1 -1
web/trace.go
··· 49 49 if traceEnabled && spanContext != nil { 50 50 spanContext, err := trace.GetOpenTracer(ctx, nil). 51 51 Extract(opentracing.TextMap, opentracing.TextMapCarrier(spanContext)) 52 - if err != nil { 52 + if err != nil && err != opentracing.ErrSpanContextNotFound { 53 53 log.Printf("Error extracting span from opts: %s", err) 54 54 } 55 55 if spanContext != nil {