8000 fix(hatchery): ctxhttp nil context (#3182) · ovh/cds@70bf4b3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 70bf4b3

Browse files
fsaminyesnault
authored andcommitted
fix(hatchery): ctxhttp nil context (#3182)
1 parent 82618ea commit 70bf4b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/api/observability/helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func Tag(key string, value interface{}) trace.Attribute {
6666
// Span start a new span from the parent context
6767
func Span(ctx context.Context, name string, tags ...trace.Attribute) (context.Context, func()) {
6868
if ctx == nil {
69-
return nil, func() {}
69+
return context.Background(), func() {}
7070
}
7171
var span *trace.Span
7272
ctx, span = trace.StartSpan(ctx, name)

0 commit comments

Comments
 (0)
0