How to integrate RUM With Node.js v12.1?

Kibana version: 7.4.1

Elasticsearch version: 7.4.1

APM Server version: 7.4.1

APM Agent language and version: RUM Agent

Browser version: Edge

We are trying to integrate our Node.js based Selfservice UI Application with Elastic APM using RUM Agent but no traces are being sent to elastic search.
The setup works fine with React JS based UI Application but doesn't work with Node JS based UI Application.

We tried all option to use @elastic/apm-rum, @elastic/apm-agent-rum-js but nothing is working.

Can someone let me know how to integrate RUM with Node JS based UI Application?