Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaab committed Jun 7, 2023
1 parent 111932a commit 4d9ac48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,7 @@ func StartTransaction(ctx context.Context, name string, options ...SpanOption) *
)
}

// HTTPtoSpanStatus converts an HTTP status code to a SpanStatus.
func HTTPtoSpanStatus(code int) SpanStatus {
if code < http.StatusBadRequest {
return SpanStatusOK
Expand Down

0 comments on commit 4d9ac48

Please sign in to comment.