@openobserve/browser-rum
v0.2.11
Published
Openobserve Real User Monitoring (RUM) enables you to visualize and analyze the real-time performance and user journeys of your application's individual users.
Downloads
7,482
Readme
RUM Browser Monitoring
Openobserve Real User Monitoring (RUM) enables you to visualize and analyze the real-time performance and user journeys of your application's individual users.
Usage
To start collecting events, add @openobserve/browser-rum
to your package.json
file, then initialize it with:
import { openobserveRum } from '@openobserve/browser-rum'
openobserveRum.init({
applicationId: '<OPENOBSERVE_APPLICATION_ID>',
clientToken: '<OPENOBSERVE_CLIENT_TOKEN>',
site: '<OPENOBSERVE_SITE>',
organizationIdentifier: '<OPENOBSERVE_ORGANIZATION_IDENTIFIER>',
service: 'my-web-application',
env: 'production',
version: '1.0.0',
sessionSampleRate: 100,
sessionReplaySampleRate: 100, // if not included, the default is 100
trackResources: true,
trackLongTasks: true,
trackUserInteractions: true,
apiVersion: 'v1',
insecureHTTP: false,
})
Note: The trackUserInteractions
parameter enables the automatic collection of user clicks in your application. Sensitive and private data contained in your pages may be included to identify the elements interacted with.