any healthy dog will make a good trail companion - if they like that sort of thing.
ime, the intense breed dogs do it best - herding type, hound type, retriever type dogs. the dogs bred to be very watchful and waiting with baited breath for every command.
that being said my family had a rhodesian that was not the best trail dog… more interested in sniffing the sights than accompanying us. my GSD is another story. loves it, always wants to do it, will be very sad if you go without him. trained very well too – always patiently stops at any road crossing (he was smart enough to figure out he was always told “halt” before a road and now just does it automatically!), doesn’t care for the people if he passes them he ignores them (unless they want to pet him) and can be called off of anything. truly born to trail ride.
ime you just need to teach them to be very responsive to vocal commands. a very well trained/indoctrinated “halt/stop” needs to be put in, as well as a recall “come/heel”. “sit/stay” is also useful, at times.
atm i have a small pack of mutts, and all of them are great on the trail. one is a large cane corso/newfie-type dog (slightly brindled, huge, very intimidating looking) and he is an angel in every retrospect. gentleman on the trail - always behind you, never out ahead or chasing things. the rest sometimes followed his lead - my staffie is always underfoot (but in a good way). the husky/bully cross is okay. will listen to you but wants to do other things. and then the dingo-type dog is certified a few marbles short but will listen as well.
as long as you have a dog that will listen to you no matter the situation, and likes to go out into “outside-land”, you will have a good trail dog no matter the breed!