Skip to content

Commit

Permalink
Update trace/trace.go
Browse files Browse the repository at this point in the history
Co-authored-by: Damien Mathieu <42@dmathieu.com>
  • Loading branch information
wdullaer and dmathieu committed Sep 23, 2022
1 parent c4ba111 commit cc0534f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions trace/trace.go
Expand Up @@ -364,8 +364,9 @@ type Span interface {
SpanContext() SpanContext

// SetStatus sets the status of the Span in the form of a code and a
// description. The description is only included in a status when the code
// is for an error.
// description, provided the status hasn't already been set to a higher
// value before (OK > Error > Unset). The description is only included in a
// status when the code is for an error.
SetStatus(code codes.Code, description string)

// SetName sets the Span name.
Expand Down

0 comments on commit cc0534f

Please sign in to comment.