Skip to content

Commit

Permalink
Set It As Empty
Browse files Browse the repository at this point in the history
  • Loading branch information
nisdas committed Jul 11, 2024
1 parent 35dc79a commit 8a4340c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitoring/tracing/trace/span.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewContext(parent context.Context, s *trace.Span) context.Context {
// if tracing is disabled.
func FromContext(ctx context.Context) *trace.Span {
if !TracingEnabled {
return nil
return trace.NewSpan(EmptySpan{})
}
return trace.FromContext(ctx)
}
Expand Down

0 comments on commit 8a4340c

Please sign in to comment.