(err error)
| 66 | } |
| 67 | |
| 68 | func (s *Span) LogError(err error) { |
| 69 | if s.otelSpan != nil { |
| 70 | s.otelSpan.RecordError(err) |
| 71 | return |
| 72 | } |
| 73 | if s.opentracingSpan != nil { |
| 74 | s.opentracingSpan.LogFields(otlog.Error(err)) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | func (s *Span) Finish() { |
| 79 | if s.opentracingSpan != nil { |
no test coverage detected