Skip to content

Commit

Permalink
Update tracing.go
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Ovchinnikov <anton@tonyo.info>
  • Loading branch information
zhezhel and tonyo committed Jul 26, 2023
1 parent a428d72 commit 933751b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracing.go
Expand Up @@ -956,8 +956,8 @@ func TransactionFromContext(ctx context.Context) *Span {
return nil
}

// SpanFromContext returns the last span stored in the context or a dummy
// non-nil span.
// SpanFromContext returns the last span stored in the context, or nil if no span
// is set on the context.
func SpanFromContext(ctx context.Context) *Span {
if span, ok := ctx.Value(spanContextKey{}).(*Span); ok {
return span
Expand Down

0 comments on commit 933751b

Please sign in to comment.