EndWithStatusCode will set a status for the span and then end it.
(span trace.Span, statusCode int)
| 202 | |
| 203 | // EndWithStatusCode will set a status for the span and then end it. |
| 204 | func EndWithStatusCode(span trace.Span, statusCode int) { |
| 205 | endSpan(span, statusCode, codes.Ok, nil) |
| 206 | } |
| 207 | |
| 208 | // EndWithErrorStatus will set a status for the span and then end it. |
| 209 | func endSpan(span trace.Span, upstreamStatusCode int, spanStatusCode codes.Code, err error) { |
no test coverage detected