Manually log an exception into Sentry

Hi Sentry communities,

I currently have a project setup that React-Native’s exception is passed down into a native module(in C++) and report to the backend. I couldn’t change the setup so I need to manually report the RN exception in native. Apparently, that’s not following Sentry’s practice.
I’m wondering if anyone has experience with this, it seems like there’s specific format I need to follow in the POST request so that I can trigger source mapping.

Any help would be appreciated.

thanks,

You can capture an exception with the SDK in JavaScript. Why would you need to pass it to native?

it’s unfortunately how our in-house infra works, all the logging happens at native layer and has been the pattern for years. but I found sentry has a custom SDK page, which helps me understand this topic