Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
elv-nate committed Nov 5, 2024
1 parent 8c36a68 commit 28afa7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion util/traceutil/traceutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ func WithSpan(spanName string, fn func() error) error {
return err
}

// Span retrieves the current span of this goroutine.
// Span retrieves the current span of this goroutine. If this function is used to add attributes or
// events to the span, span.SlowOnly should be checked to ensure that detailed tracing is not added
// when unnecessary.
func Span() trace.Span {
return current().Span()
}
Expand Down

0 comments on commit 28afa7f

Please sign in to comment.