From 4d9ac481e53cb129887427d74fdd100bd542a5fd Mon Sep 17 00:00:00 2001 From: Jesse Haka Date: Wed, 7 Jun 2023 08:18:40 +0300 Subject: [PATCH] add comment --- tracing.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tracing.go b/tracing.go index c9dd3a6bd..41d7a4316 100644 --- a/tracing.go +++ b/tracing.go @@ -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