Skip to content

Commit

Permalink
context fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xxjwxc committed Jun 13, 2023
1 parent 1cb43e9 commit 8262c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracer/jaeger.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func SpanWithLog(arg ...interface{}) SpanOption {

func Start(spanName string, ctx context.Context) (newCtx context.Context, finish func(...SpanOption), err error) {
if ctx == nil {
ctx = context.TODO()
ctx, _ = context.WithTimeout(context.Background(), 3*time.Second)
}

_trace := GetTracer()
Expand Down

0 comments on commit 8262c8b

Please sign in to comment.