Skip to content

Changelog


Browser SDK 3.3.25

2026-11-20

  • Web RUM full and slim builds add onInitSuccess and onInitError initialization callbacks. When remoteConfiguration is enabled, applications can distinguish between a processed remote response, fallback to local configuration, and SDK initialization failure. Fixed duplicate startup and compression Worker state isolation issues. For details, see Get SDK initialization results.
  • Fetch resource events now prioritize the browser's Resource Timing. When collecting duration and byte count, the SDK does not need to read or clone the application response body, and each timing entry matches at most one request. For details, see Fetch resource timing.
  • Session Replay fixed an issue where snapshots could still contain stale default values, selections, or editable text after form fields were modified or cleared. Replay and resource events now use consistent URL privacy rules, and distributed tracing request matching is stricter.
  • Fixed batch send ordering when pages exit, networks reconnect, or uploads are backlogged. Non-extensible objects with a custom toJSON can now also be reported, and serialization preserves the original object's property descriptors.
  • Added a DOM-only replay script. Optimized event encoding, URL parsing, and replay compression to reduce scheduling when Canvas is idle and Worker memory usage.
  • Fixed click collection for cross-window elements; improved Angular route duplicate initialization, startup-stage error caching, and privacy handling for route query parameters.

2026/09/16

Browser SDK 3.3.16 new features and improvements:

  1. The full RUM package and slim RUM package support reusing the App's Visitor ID in WebViews. When visitorId.enabled is enabled, the current domain passes native bridge allowlist validation, and the App provides a synchronous FTWebViewJavascriptBridge.getVisitorid() interface that returns a valid identifier, for XHR and Fetch requests that match the rules, the request headers and RUM context.visitor_id preferentially use this identifier; when the bridge is unavailable, the return value is invalid, or reading fails, it falls back to the existing web identifier. The validity period and rotation of the native identifier are managed by the App. When a valid native identifier is read, the web resetVisitorId() will not rotate the ID separately. Using this capability requires a Mobile SDK that supports this interface.
  2. Optimized reporting timing for the first View: Views generated by the initial page and each route change are scheduled for reporting immediately as soon as sampling and send conditions are first met, without waiting for the batch send interval; subsequent updates are still merged and reported at the existing cadence. When the page is hidden or exits, the latest state of each View is retained, with compatibility for compressed upload and fallback on compression failure, reducing View loss during short visits and rapid page switching.
  3. Fixed the interaction between forced Sessions and error compensation sampling. After calling setForcedSession() or startSessionReplayRecording({ force: true }), RUM data for the current Session and any started Replay can be reported without waiting for an error, and the existing error replay buffer is released. Cross-tab Session switching, renewal boundaries when expiry is delayed, and error flags and compensation reporting for a new Session after a forced Session ends were also fixed. setForcedSession() itself does not start Replay recording; subsequent Sessions still follow the configured sampling rules.
  4. Fixed an issue where some JavaScript errors had only an error message and lacked location information. When Error.stack cannot be parsed into stack frames, the script URL, line number, and available column number provided by the browser through window.onerror are retained, covering scenarios such as script syntax errors; existing stacks remain unchanged, and location information not provided by the browser is not fabricated.
  5. Fixed an issue where large stylesheets could be lost in Session Replay. When the combined DOM and CSS size does not exceed the full snapshot capacity limit, larger external and inline CSS is retained, reducing missing replay styles caused by separate limits on stylesheet rule count, character count, processing duration, or normal string length. Privacy handling and overall capacity protection are still retained; when a stylesheet cannot be read or exceeds capacity, the fallback logic is used.
  6. Corrected the public TypeScript declarations for Core, full RUM, slim RUM, and Logs so they align with the runtime APIs. The full and slim RUM packages support direct import of TraceType, traceType accepts supported string values; legacy configuration aliases, public type exports, the Logs 'all' forwarding configuration, and log level method declarations were completed, reducing type errors for existing valid usage.
  7. Corrected the Content-Type of JSON reporting requests to application/json;charset=UTF-8, covering compressed upload scenarios as well.
  8. Added a performance evaluation report and performance self-check guides for CDN and npm integration to the SDK repository, all collected under the performance/ directory to help evaluate the SDK's impact on page performance.

2026/09/07

RUM SDK 3.3.15 new features and improvements:

  1. Added the visitorId configuration to inject a stable anonymous visitor identifier into XHR and Fetch requests that match the rules, and associate this value in RUM context.visitor_id. Supports same-origin string prefix, regular expression, and function matching, as well as TTL, storage fallback, and resetVisitorId() rotation; it does not depend on Session or Distributed Tracing sampling. Visitor ID
  2. Visitor ID preserves request semantics in Fetch parameters and XHR synchronous callbacks; unmatched requests retain their original custom headers; rotation at the same timestamp does not restore an old fallback ID, occupation of resource correlation headers is prohibited, and View/event contexts are prevented from overriding the SDK identifier.
  3. Fixed Visitor ID initialization compatibility issues involving preservation of business request headers for cross-iframe Request, duplicate identifiers on retry after XHR synchronous failure, and missing native WeakSet; identifiers are now added to events buffered before initialization, and repeated deep copying of global fields each time the RUM common context is read is avoided.

2026/08/31

RUM SDK 3.3.14 new features and improvements:

  1. Added the enablePrivacyForActionName configuration, which is disabled by default. When enabled, automatic Action names follow the DOM privacy level: masked content uses a fixed placeholder name, private form fields do not expose text or standard naming attributes, and clicks in hidden subtrees do not generate automatic Actions; explicitly specified business names can still be used on non-hidden nodes. User Actions

2026/08/28

New features and improvements in subsequent RUM SDK versions:

  1. When the browser provides User-Agent Client Hints, platformVersion can be used to distinguish Windows 10 from Windows 11, and the first batch of RUM data is ensured to use the same system version information; when this capability is not supported, high-entropy values are refused, or the query times out, the traditional User-Agent continues to be used. RUM data structure

2026/08/26

RUM SDK 3.3.11 new features and improvements:

  1. Fixed Session Replay's recognition of elements across iframe JavaScript realms in micro-frontends such as Wujie: native form inputs, DOM changes, and enabled Canvas recordings created by an iframe realm and mounted to the current page's open ShadowRoot can now enter replay normally; property assignments to form elements' value, checked, and selectedIndex can also be recorded. In Canvas command capture mode, cross-realm Canvases automatically fall back to bitmap snapshots. This capability does not cover documents inside iframes or closed Shadow DOM. Session Replay integration guide

RUM SDK 3.3.10 new features and improvements:

  1. Automatic Actions support click elements inside open Shadow DOM, including elements created by an iframe's JavaScript realm and then mounted to a ShadowRoot (for example, in Wujie micro-frontends). The SDK generates names and location information with Shadow boundaries based on the actual click target, and avoids mistakenly using aggregated text from containers such as table rows and cards as the Action name; Closed Shadow DOM is still limited by the browser's encapsulation boundary. User Actions

2026/08/25

RUM SDK 3.3.9 new features and improvements:

  1. SPA route_change Views support the Chrome Soft Navigation API. When natively supported by the browser, route changes can add FCP, LCP, the LCP element selector, and view_navigation_type; when the native API is not supported, Route Views continue to be created through the Navigation API, History API, or Hash route compatibility logic, and the push, replace, and traverse navigation types are retained, but FCP/LCP for that route change are not added. RUM data structure
  2. Fixed an issue where View data could be delayed indefinitely while a page was continuously updated, ensuring that when a pending View is updated, it still uses the original batch's reporting deadline and reports the latest data at the existing send interval.

2026/08/20

RUM SDK 3.3.8 new features and improvements:

  1. WebSocket Resources add a resource_websocket_end_view_path field for the page path at the end of a segment; the segment start path reuses the standard field view_path, so you can filter in the Resource Explorer by the page where the connection started or ended. WebSocket long-connection collection

2026/08/11

RUM SDK 3.3.7 new features and improvements:

  1. Added an optional WebGL/WebGL2 Session Replay plugin, available via NPM and CDN, which records games and visualizations through draw-driven, budget-constrained pixel snapshots. The WebGL implementation is split from the main RUM package, so apps that do not use WebGL do not need to include the plugin. Canvas Recording Guide
  2. Added the allowTraceHeaderWithoutSession configuration. When enabled, even if the current RUM Session is not sampled, Trace Headers can still be injected into XHR and Fetch requests that match allowedTracingUrls; this does not create or force-enable a Session, nor does it report RUM data for that unsampled Session. Web application integration
  3. Optimized Canvas 2D automatic recording and command capture, adding more drawing APIs and states; fixed missed captures from partial or opacity changes, out-of-order asynchronous frames, incomplete coverage of scaled snapshots, and flickering caused by sending reset and bitmap separately. Multiple Canvases use fair scheduling, change detection, and bounded concurrency, balancing dynamic visual continuity with page performance. Canvas Recording Guide
  4. Optimized replay for large DOMs, dynamic Shadow DOM, and stylesheets. Large snapshots and sudden DOM changes now use chunking, atomic commits, and baseline recovery, reducing page jitter caused by node moves being split into "remove first, then add" and missing large elements or CSS styles. Session Replay integration guide
  5. Enhanced the reliability of compressed uploads and Session Replay transmission: when the compression Worker fails, uploads automatically fall back to uncompressed uploads, preventing loss of RUM data such as Views, Actions, Errors, and Resources; the Replay baseline and subsequent segment order are also preserved during encoding backpressure, network retries, and page exits, reducing incomplete or missing replays.
  6. Fixed query parameter parsing for Hash Router View URLs. Parameters in #/path?key=value are now correctly written to the View URL Query. RUM data structure

Upgrade note: WebGL Replay is available from SDK 3.3.7 onward, requires RUM main package version >= 3.3.7, and it is recommended that the plugin and main package use the same SDK release version. The plugin works only in Canvas auto mode and must be registered during init() before the WebGL engine is initialized; it does not provide GL command replay, frame-by-frame video, or OffscreenCanvas recording.

When Canvas 2D does not use a named quality preset, the default values for automatic collection interval/cooldown have changed from 1000/1000 ms to 250/250 ms; the low, medium, and high presets also use faster Canvas 2D scheduling. Dynamic visuals will be smoother but may increase CPU, encoding, and upload overhead. When interval/cooldown are not explicitly configured for WebGL, the more conservative GPU readback cadence is retained.

A positive number in replayCanvasSampling is used to select the snapshot path and does not represent collection frequency; frequency is controlled by interval, cooldown, and backoff. String presets for replayCanvasQuality adjust quality, sampling, and scheduling budget together, while numeric values adjust only encoding quality.

2026/07/29

RUM SDK 3.3.6 new features:

  1. Framework plugins for React, Vue, Angular, Next.js, and Nuxt, supporting View collection based on route templates and providing corresponding framework error entry points. Integration guide
  2. Client-side integration for Next.js App Router, Pages Router, and Nuxt 3/4. SSR integration guide
  3. Experimental native WebSocket long-connection collection, aggregating connection statistics into RUM Resources. WebSocket long-connection collection
  4. startView() supports specifying the View URL via url, for use with manual Views and framework Router integration. Custom View
  5. Added startSession(), which supports immediately ending the current Session, re-running session sampling, and overriding sessionSampleRate at runtime. Sampling and runtime Session control

2026/06/30

RUM SDK 3.3.3 new features:

  1. Added the Slim RUM SDK, available via NPM and CDN. It retains standard RUM capabilities such as View, Resource, Long Task, Error, Action, Context, custom events, and Distributed Tracing, but does not include Session Replay, Canvas recording, or compressIntakeRequests upload compression. Slim RUM SDK integration guide

2026/04/17

Added Canvas Session Replay recording. See also Added the Resource Hook feature. See also

2025/04/23

Added remoteConfiguration, which supports dynamically modifying data collection configuration remotely.

2025/04/13

  1. Added the shouldMaskNode configuration to customize the masking effect for Session Replay nodes
  2. Added the sessionOnErrorSampleRate configuration to collect only error session events. See also
  3. Added the sessionReplayOnErrorSampleRate configuration. This collects only Session Replay data related to errors. See also

2022/9/29

Added the isIntakeUrl configuration to initialization parameters, used to determine whether to collect data for the corresponding resource based on the requested resource URL; by default, all are collected.

2022/3/10

  1. Added the traceType configuration for the Distributed Tracing tool type. If not configured, it defaults to ddtrace. Six data types are currently supported: ddtrace, zipkin, skywalking_v3, jaeger, zipkin_single_header, and w3c_traceparent.

  2. Added allowedTracingOrigins, a list of all requests allowed to have the headers required by the Trace collector injected. Entries can be request origins or regular expressions.

  3. The existing configuration item allowedDDTracingOrigins and the new configuration item allowedTracingOrigins serve the same function. You can configure either one; if both are configured, allowedTracingOrigins takes precedence over allowedDDTracingOrigins.

2021/5/20

  1. In conjunction with the metric data changes in V2, upgrade to a DataKit version later than 1.1.7-rc0. For more details, see DataKit configuration.

  2. The SDK has been upgraded to V2, and the CDN address has changed to https://static.guance.com/browser-sdk/v2/dataflux-rum.js.

  3. Removed metric data collection for rum_web_page_performance, rum_web_resource_performance, js_error, and page; added metric data collection for view, action, long_task, and error.

  4. Added the trackInteractions initialization configuration to enable Action (user behavior data) collection; it is disabled by default.

Feedback

Is this page helpful?