@kubesense/kubesense-browser-rum-slim
v1.4.0
Published
Kubesense Browser RUM SDK — slim build without Session Replay recording or Profiling.
Maintainers
Readme
Kubesense Browser RUM — Slim
A lightweight build of the Kubesense Browser RUM SDK. It collects the same
page views, user actions, resources, errors, long tasks, and Core Web Vitals, but
omits Session Replay recording and Profiling (and the compressIntakeRequests
initialization parameter that depends on the worker bundle).
Use this package when bundle size matters and you don't need Session Replay — its public API is otherwise identical to the full RUM SDK.
Installation
npm install @kubesense/kubesense-browser-rum-slim
# or
yarn add @kubesense/kubesense-browser-rum-slimUsage
import { kubesenseSdk } from '@kubesense/kubesense-browser-rum-slim'
kubesenseSdk.init({
applicationId: '<KUBESENSE_APPLICATION_ID>',
clientToken: '<KUBESENSE_CLIENT_TOKEN>',
site: '<KUBESENSE_SITE>',
sessionSampleRate: 100,
trackResources: true,
trackLongTasks: true,
trackUserInteractions: true,
})Session Replay options (
sessionReplaySampleRate,startSessionReplayRecordingManually) andcompressIntakeRequestsare not available in this build. To use them, switch to@kubesense/kubesense-browser-rum.
Documentation
See the Browser RUM Integration Guide for the full API. Everything there applies except the Session Replay and Profiling sections.
