Trace for a specific Gem

Is there a way to enable backtracing for a specific gem? I don’t want to see the full backtrace; I’d like to exclude any Rails specific lines in the backtrace. I do, however, have a specific gem that I’d like to include in the backtrace, but I don’t know how to include it.

You can chuck a regex into the ignore set