Skip to content

Commit

Permalink
fix(otelx): always set error in End (#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik authored Aug 23, 2024
1 parent 8a54355 commit 56eebb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions otelx/withspan.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ func setErrorTags(span trace.Span, err error) {
span.SetAttributes(attribute.String("error.details."+k, fmt.Sprintf("%v", v)))
}
}
span.SetAttributes(attribute.String("error", err.Error()))
}

0 comments on commit 56eebb2

Please sign in to comment.