@nathanclaire/rum
v2.0.0
Published
Real User Monitoring SDK core for Ionic Angular Capacitor apps
Readme
@nathanclaire/rum
Core Real User Monitoring SDK for Ionic Angular Capacitor apps.
This is the core package that handles event capture, batching, offline queuing, and transport. For most apps, you'll also want @nathanclaire/rum-angular and @nathanclaire/rum-capacitor.
Install
npm install @nathanclaire/rum @nathanclaire/rum-angular @nathanclaire/rum-capacitorUsage
See the quick start guide for full setup instructions.
API
EdgeRum.init(config) // Initialize the SDK
EdgeRum.identify(user) // Attach user.name / user.email / user.phone (user.id is SDK-owned)
EdgeRum.track(name, attrs) // Record a custom event
EdgeRum.time(name) // Start a timer (returns { end() })
EdgeRum.captureError(err) // Record a handled error
EdgeRum.disable() // Pause capture and clear queue
EdgeRum.enable() // Resume capture
EdgeRum.getSessionId() // Get the current session ID