Skip to content

Commit

Permalink
Document the SetName method
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Feb 17, 2021
1 parent 2f4e7b0 commit 287e763
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/trace/span.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ func (s *span) addEvent(name string, o ...trace.EventOption) {
})
}

// SetName sets the name of this span. If this span is not being recorded than
// this method does nothing.
func (s *span) SetName(name string) {
if !s.IsRecording() {
return
Expand Down

0 comments on commit 287e763

Please sign in to comment.