SetError will set the error flag on the span.
()
| 239 | |
| 240 | // SetError will set the error flag on the span. |
| 241 | func (s *SpanLogger) SetError() { |
| 242 | if s.otelSpan != nil { |
| 243 | s.otelSpan.SetStatus(codes.Error, "error") |
| 244 | return |
| 245 | } |
| 246 | |
| 247 | ext.Error.Set(s.opentracingSpan, true) |
| 248 | } |
| 249 | |
| 250 | // SetTag will set a tag/attribute on the span. |
| 251 | func (s *SpanLogger) SetTag(key string, value interface{}) { |