...
Code Block | ||
---|---|---|
| ||
import kfuseRumSDK from 'kf-browser-sdk';
kfuseRumSDK.init({
applicationId: '<APPLICATION_ID>',
clientToken: '<CLIENT_TOKEN>',
site: '<SITE>',
proxy: '<KFUSE_RUM_ENDPOINT>',
service: '<APPLICATION_NAME>',
env: 'production',
version: '1.0.0',
sessionSampleRate: 100,
enableSessionRecording: true,
enableLogCollection: true,
}); |
...
applicationId
: a UUID that uniquely identifies a specific frontend application. All RUM telemetry will be associated with it.clientToken
: (currently unused) a token that identifies valid producers of RUM telemetry .site
: (currently unusedit is currently used so you may supply the valuedummy
here)proxy
: the Kloudfuse ingest endpoint for RUM events. Its value would behttps://<kfuse-public-endpoint>/ddrumproxy
service
: a friendly name unique to the the frontend application being instrumentedenv
: a name identifying a logical source of RUM events (e.g. test environment or production environment)version
: a string representing the unique frontend application build (e.g.1.0.0
)sessionSampleRate
: what percentage of user session sessions that will generate RUM telemetry (0 to 100)enableSessionRecording
: controls whether the users session will be recordedenableLogCollection
: controls whether frontend logs will be collected or not
Associating User Information
...