Many insects chew trails in wood beneath the bark. To find these kinds of tracks you can pull up the bark on a dead branch and see the maze of tunnels that have been made there. These tunnels were made by a beetle.
Tanya Dewey (photographer; copyright holder; identification), Animal Diversity Web