code: func FinishSpan(ctx context.Context, err error) {
  	if ctx == nil {
  		return
  	}
  	span := opentracing.SpanFromContext(ctx)
  	if span == nil {
  		return
  	}
  	defer span.Finish()
  	if err != nil {
  		LogError(span, err.Error())
  	}
  }
docs: // FinishSpan finishes a span retrieved from the given context and logs the error if it exists