Switching APM providers without the headache
dev.to·6d·
Discuss: DEV
🔄Syncthing
Preview
Report Post

The context

Last week a friend called me asking which APM/error tracking tool I use. He had his current provider scattered all over the project and wanted to switch to something different.

I’ve been using AppSignal or New Relic since 2019 and really like them. In his case, I recommended AppSignal for reasons we can discuss in another post to keep this one short.

But the conversation went further: "What if a year from now I want to switch again? Will I have to find & replace across the entire project?"

I suggested he create an adapter. He said he’d never implemented one in practice.

Well, we built it together that afternoon. And that’s exactly what I’m going to share here.


Before: provider coupled throughout the code

His project looked like this:

# app/co...

Similar Posts

Loading similar posts...