Changelog¶
Browser SDK 3.3.25¶
2026-11-20
- Web RUM full and slim builds add
onInitSuccessandonInitErrorinitialization callbacks. WhenremoteConfigurationis 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
toJSONcan 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:
- The full RUM package and slim RUM package support reusing the App's Visitor ID in WebViews.
When
visitorId.enabledis enabled, the current domain passes native bridge allowlist validation, and the App provides a synchronousFTWebViewJavascriptBridge.getVisitorid()interface that returns a valid identifier, for XHR and Fetch requests that match the rules, the request headers and RUMcontext.visitor_idpreferentially 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 webresetVisitorId()will not rotate the ID separately. Using this capability requires a Mobile SDK that supports this interface. - 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.
- Fixed the interaction between forced Sessions and error compensation sampling. After calling
setForcedSession()orstartSessionReplayRecording({ 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. - Fixed an issue where some JavaScript errors had only an error message and lacked location information. When
Error.stackcannot be parsed into stack frames, the script URL, line number, and available column number provided by the browser throughwindow.onerrorare retained, covering scenarios such as script syntax errors; existing stacks remain unchanged, and location information not provided by the browser is not fabricated. - 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.
- 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,traceTypeaccepts 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. - Corrected the
Content-Typeof JSON reporting requests toapplication/json;charset=UTF-8, covering compressed upload scenarios as well. - 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:
- Added the
visitorIdconfiguration to inject a stable anonymous visitor identifier into XHR and Fetch requests that match the rules, and associate this value in RUMcontext.visitor_id. Supports same-origin string prefix, regular expression, and function matching, as well as TTL, storage fallback, andresetVisitorId()rotation; it does not depend on Session or Distributed Tracing sampling. Visitor ID - 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.
- 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 nativeWeakSet; 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:
- Added the
enablePrivacyForActionNameconfiguration, 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:
- When the browser provides User-Agent Client Hints,
platformVersioncan 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:
- 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, andselectedIndexcan 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:
- 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:
- SPA
route_changeViews support the Chrome Soft Navigation API. When natively supported by the browser, route changes can add FCP, LCP, the LCP element selector, andview_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 thepush,replace, andtraversenavigation types are retained, but FCP/LCP for that route change are not added. RUM data structure - 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:
- WebSocket Resources add a
resource_websocket_end_view_pathfield for the page path at the end of a segment; the segment start path reuses the standard fieldview_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:
- 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
- Added the
allowTraceHeaderWithoutSessionconfiguration. When enabled, even if the current RUM Session is not sampled, Trace Headers can still be injected into XHR and Fetch requests that matchallowedTracingUrls; this does not create or force-enable a Session, nor does it report RUM data for that unsampled Session. Web application integration - 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
- 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
- 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.
- Fixed query parameter parsing for Hash Router View URLs. Parameters in
#/path?key=valueare now correctly written to the View URL Query. RUM data structure
Upgrade note: WebGL Replay is available from SDK
3.3.7onward, 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 Canvasautomode and must be registered duringinit()before the WebGL engine is initialized; it does not provide GL command replay, frame-by-frame video, orOffscreenCanvasrecording.When Canvas 2D does not use a named quality preset, the default values for automatic collection interval/cooldown have changed from
1000/1000 msto250/250 ms; thelow,medium, andhighpresets 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
replayCanvasSamplingis used to select the snapshot path and does not represent collection frequency; frequency is controlled by interval, cooldown, and backoff. String presets forreplayCanvasQualityadjust quality, sampling, and scheduling budget together, while numeric values adjust only encoding quality.
2026/07/29¶
RUM SDK 3.3.6 new features:
- 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
- Client-side integration for Next.js App Router, Pages Router, and Nuxt 3/4. SSR integration guide
- Experimental native WebSocket long-connection collection, aggregating connection statistics into RUM Resources. WebSocket long-connection collection
startView()supports specifying the View URL viaurl, for use with manual Views and framework Router integration. Custom View- Added
startSession(), which supports immediately ending the current Session, re-running session sampling, and overridingsessionSampleRateat runtime. Sampling and runtime Session control
2026/06/30¶
RUM SDK 3.3.3 new features:
- 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
compressIntakeRequestsupload 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¶
- Added the
shouldMaskNodeconfiguration to customize the masking effect for Session Replay nodes - Added the
sessionOnErrorSampleRateconfiguration to collect only error session events. See also - Added the
sessionReplayOnErrorSampleRateconfiguration. 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¶
-
Added the
traceTypeconfiguration for the Distributed Tracing tool type. If not configured, it defaults toddtrace. Six data types are currently supported:ddtrace,zipkin,skywalking_v3,jaeger,zipkin_single_header, andw3c_traceparent. -
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. -
The existing configuration item
allowedDDTracingOriginsand the new configuration itemallowedTracingOriginsserve the same function. You can configure either one; if both are configured,allowedTracingOriginstakes precedence overallowedDDTracingOrigins.
2021/5/20¶
-
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.
-
The SDK has been upgraded to V2, and the CDN address has changed to
https://static.guance.com/browser-sdk/v2/dataflux-rum.js. -
Removed metric data collection for
rum_web_page_performance,rum_web_resource_performance,js_error, andpage; added metric data collection forview,action,long_task, anderror. -
Added the
trackInteractionsinitialization configuration to enable Action (user behavior data) collection; it is disabled by default.