Datadog RUM in Jira Forge App (Custom UI)

Hi - is it possible to add real usage monitoring to custom UI jira forge app (Link to Datadog RUM setup guide: RUM Browser Monitoring) ? I have an app using the projectPage and issuePanel modules and would like to use datadog for monitoring browser runtime errors. I’ve tried using datadog’s npm module inside of resolver and calling invoke('startSessionReplayRecording') when the App renders, but no luck. Any help is appreciated, thanks!