atatusRum is window.ATATUS_RUM, and atatusLogs is window.ATATUS_LOGS.
Call any of these after init() has run.
Views
Views are created automatically on load and on route change. These methods let you name and annotate them:
Use
setViewName when a router integration is not available:
Actions and resources
Clicks are collected for you whentrackUserInteractions is on. These methods cover the work that is not a click:
Errors and timing
Duration vitals measure work the browser cannot time for you, such as how long a chart took to render:
Operations
Operations track a multi-step flow and whether it succeeded:Identity
Set the user and account once they are known, and clear them on sign-out:id, name, and email are recognized fields. Any other key is kept as a custom attribute.
Set the user again whenever it changes, including on an account switch. The agent keeps whatever you last set, so a stale user stays attached to the rest of the session.
Context and feature flags
Global context is attached to every event:
See Feature Flags for how flags are attached to events.
Session Replay
See Session Replay for sampling and privacy.
Lifecycle and diagnostics
getInternalContext() is the quickest way to confirm the agent is recording:
Logs API
atatusLogs has its own methods, alongside the same identity and context methods listed above:
See Logs for levels and usage.