Finish will finish the span.
()
| 259 | |
| 260 | // Finish will finish the span. |
| 261 | func (s *SpanLogger) Finish() { |
| 262 | if s.otelSpan != nil { |
| 263 | s.otelSpan.End() |
| 264 | return |
| 265 | } |
| 266 | s.opentracingSpan.Finish() |
| 267 | } |
| 268 | |
| 269 | // LogFields will log the provided fields in the span, this is more performant that LogKV when using opentracing library. |
| 270 | func (s *SpanLogger) LogFields(kvps ...otlog.Field) { |
no outgoing calls