EndWithErrorStatus will set a status for the span and then end it.
(span trace.Span, err error)
| 197 | |
| 198 | // EndWithErrorStatus will set a status for the span and then end it. |
| 199 | func EndWithErrorStatus(span trace.Span, err error) { |
| 200 | endSpan(span, -1, codes.Error, err) |
| 201 | } |
| 202 | |
| 203 | // EndWithStatusCode will set a status for the span and then end it. |
| 204 | func EndWithStatusCode(span trace.Span, statusCode int) { |
no test coverage detected