Salesforce Error Handling


#1

Hello Community,

I searched and didn’t find anything, but we have built a homegrown error logging solution in the Salesforce Platform. It’s been good, but I just feel time is better spent just sending these to another tool where there’s a lot of goodies already baked in.

I know there is not an official “Apex” language support, but could I just catch the errors and send them through the API? Or what would be the route to build a package or Salesforce?

Any guidance would greatly be appreciated! Thanks!


#2

Hi Brandon,

https://docs.sentry.io/development/sdk-dev/overview/ are the official docs for this which also explain what features are usually expected from general-purpose SDKs. How can I post with curl a sentry event? Which authentication credentials? might be a quicker way to get started if you want to write a solution just for yourself.


#3

Great stuff! Thanks a bunch.