Skip to content

Changelog


ft_sdk

0.1.18 (2026/10/30)

  1. Added support for the standalone ft_session_replay module (experimental), correlating Session, View, Error, and ArkWeb data during recording. See Session Replay release notes.
  2. Added percentage sampling APIs: setSessionSamplingRate(...), setSessionOnErrorSamplingRate(...), setLogSamplingRate(...), and setTraceSamplingRate(...), with values in [0,100], supporting remote configuration caching and dynamic updates; the legacy APIs retain the [0,1] unit and remain usable; when switching to the new APIs, multiply the values by 100.
  3. Added Resource transfer information and a network snapshot taken at request start: transfer fields include resource_request_size, resource_http_protocol, and resource_connection_reuse; network fields include network_available, network_validated, network_downlink_kbps, network_uplink_kbps, and network_signal_strength, collected according to system support.
  4. Added FTRUMConfig.setNetworkErrorHandler(...) to handle local network errors without an HTTP response via the onExceptionWithFilter(...) callback; returning true filters only the Network Error while keeping the Resource, and allows adding custom fields; fixed the inconsistent error_type of Network Errors, now unified as network_error.
  5. Added app stability metrics: foreground_crash_free_duration and background_crash_free_duration record the crash-free duration in the foreground and background respectively, and view_long_task_rate records the proportion of long task time on a page.
  6. Added FTSDKConfig.setAllowWebViewHost(...) to uniformly control the Host scope of WebView RUM and Replay, and deprecated FTRUMConfig.setAllowWebViewHost(...).
  7. Added FTSDK.getLogConfig() to obtain the current log configuration, making it easier to retain existing settings when updating.
  8. Changed the HTTPS Resource connection duration statistics so that resource_tcp and resource_connect_time include the TLS handshake duration; fixed Resource time recording deviations and missing data for zero-duration records.
  9. Changed the upload strategy for large data: large records are now uploaded individually as a whole, preventing data such as Errors from being dropped or failing to upload due to local size limits; existing integrations require no changes.
  10. Fixed anomalies in View collection, duration, and data correlation during page switching, foreground/background switching, session updates, and SDK re-initialization; in-progress Resources retain their original correlation. startView(...) creates a new View each time, and stopView(...) merges existing properties, with the value at stop time taking precedence for fields with the same name.
  11. Fixed the setActionTrackingHandler(...) callback for automatic click and launch events: HandlerAction can modify the name and properties, null skips collection, and undefined keeps default collection.
  12. Fixed Actions and Views in error-sampled sessions being reported as normal samples, and View caches for pages with long dwell times being cleaned up prematurely.
  13. Fixed incorrect View user information after initialization or account switching, and changes to the privacy device UUID and anonymous user ID after an app restart.
  14. Fixed setOnlySupportMainProcess(true) not taking effect; to monitor subprocesses, set setOnlySupportMainProcess(false) before installation.
  15. Optimized SDK background session and memory management, reducing background periodic checks and memory usage; fixed duplicate registration of the same client in applyFTAxiosTrack(...), and added dispose() to its return value to support removing the Axios collection interceptor.
  16. Fixed cold start reporting and app_launch_type determination: foreground (launched from the foreground), background (launched from the background), foreground_and_background (launched from the foreground, moved to the background before the first frame, then returned to the foreground).

0.1.17 (2026/09/11)

  1. Added setEnableConsoleLog(...) and @cloudcare/hvigor-ohos-plugin to support automatic collection of console.* and hilog.* logs; you must integrate the Plugin and enable the log configuration. Its optional prefix parameter supports both a normal message prefix and configuring DataKit allow rules by message, log_source, and HiLog's tag and domain; log levels are still controlled by setLogLevelFilters(...), and the rules take effect before automatic logs enter the SDK queue.
  2. Added cold start collection based on a compilation plugin, automatically reporting process startup, AbilityStage initialization, first UIAbility creation, and first frame duration, without manual lifecycle recording.
  3. Added FTRUMConfig.setResourceUrlHandler(...) to filter automatic Resources from RCP, Axios, and NetworkKit; it does not affect Trace Header injection or manual Resources.
  4. Added file cache governance capabilities, supporting total cache capacity limits, discard policies, direct FileStore uploads, and legacy cache migration.
  5. Added FTRUMConfig.setViewTrackingHandler(handler, type) to filter, rename, and add properties for automatic Views by Router, Navigation, or all; the handler receives an FTViewTrackingContext containing source page information.
  6. Added Resource performance timing collection and waterfall chart stage mapping for NetworkKit and @ohos/axios; when performance timings are missing, or the final timestamp is earlier than the previous stage, it falls back to the actually measured total request duration to avoid invalid stages.
  7. Optimized FileStore writes, capacity statistics, and recovery diagnostics, improving stability in file cache and shadow write scenarios.
  8. Optimized the refresh mechanism for remote data filter rules: updates are checked according to pull_interval when an upload task starts, the numeric interval is parsed in nanoseconds, and no repeated processing occurs when the server content is unchanged.
  9. Fixed potential loss of Resource/Error counts and Action correlation when an automatic Resource completes after its owning Action has closed.
  10. Fixed View Resource and pending counts not being refreshed in time after a Resource completes when the Action has already closed.
  11. Fixed RCP Resource waterfall first byte and download stages being calculated using reconstructed durations, which caused missing transfer stages or abnormal stage durations.
  12. Fixed missing resource_status=0 for Resources that returned no HTTP response, such as timeouts and connection failures, and for their associated Network Errors.
  13. Fixed missing bound user and network properties for Actions, Resources, and Errors generated by Workers, and for Network Errors generated from Resources.
  14. Fixed missing SDK common properties for Actions, Resources, and Errors after custom LineDataModifier processing, and for their associated Network Errors.
  15. Fixed automatic Resources potentially being dropped when Axios and NetworkKit requests complete without a network status but with a valid duration.

0.1.16 (2026/08/31)

  1. Added RUM device metrics collection; you can configure View CPU, memory, battery current, and FPS via setDeviceMetricsMonitorType(...), and add CPU, memory, and battery metrics to Errors via setExtraMonitorTypeWithError(...). Existing calls to setDeviceMetricsDetectFrequency(...) and the single-parameter setDeviceMetricsMonitorType(...) remain usable.
  2. Added FTRUMConfig.setActionTrackingHandler(...) to filter automatic Click Actions: returning null skips collection, and returning undefined keeps default collection.
  3. Fixed the duration calculation of UI jank LongTasks by using the system MAIN_THREAD_JANK event.
  4. Fixed occasional missing app_id in RUM Actions, Resources, and Errors after an EventConsumer Worker restart, ensuring data is correlated to the configured RUM application.
  5. Fixed resource_id of native and WebView Resources and their generated Network Errors not using a stable UUID, facilitating correlation queries.
  6. Fixed potential duplicate RUM data reporting on retried uploads by retaining and reusing the original sdk_data_id.
  7. Changed WebView data supplementation rules: view_path_name is no longer supplemented automatically; when view_referrer is missing, it falls back to the current native View.
  8. Changed the default name of automatic Actions to component type/component text#component ID; components in lists and Tabs append #position:n.
  9. Changed remote data filter rules: automatic pulling occurs after setEnableDataFilter(true) is enabled and a valid reporting address is configured; cached data matching the rules is cleared when rules are updated.
  10. Optimized offline data upload: after retries are exhausted, it waits for an external trigger without blocking subsequent uploadable data.

0.1.15 (2026/07/29)

  1. Added DataModifier to support modifying or masking fields and tags of Logs, native RUM, and WebView RUM; when a field callback returns null, the original value is retained.
  2. Added the line-level data patch capability LineDataModifier; the callback receives the merged data and only overrides fields present in the returned patch; returning null or an empty Map leaves the data unchanged.
  3. Added data filtering for RUM and Logging, enabled by default; toggle it via setEnableDataFilter(...) and configure local rules via setDataFilters(...); local and remote rules both take effect, and data matching the rules is not written to the local cache.
  4. Added the ability to switch reporting addresses at runtime via FTSDK.setDatakitUrl(...) or FTSDK.setDatawayUrl(..., clientToken); remote configuration is refreshed automatically after switching, and DataWay mode requires a client Token.
  5. Added remote configuration; at startup, local cache is merged with the supported runtime update items; enable it via setRemoteConfiguration(...) and refresh manually via updateRemoteConfig(...).
  6. Extended the RUM Action APIs: addAction supports setting duration and extended properties, and startAction supports setting extended properties.
  7. Removed addActionWith..., startActionWith..., and the incomplete public stopAction API; please migrate to addAction and startAction.
  8. Added support for Resource lifecycle extended properties; the properties of startResource and stopResource are merged with ResourceParams in call order.
  9. Removed the unused statusCode and contentLength parameters from the public stopResource; please remove the corresponding call arguments.
  10. Changed the addError overload form; dateline can be placed before errorType, and the Worker callback is no longer a public interface.

0.1.14 (2026/07/17)

  1. Optimized the Error and Resource collection pipeline by removing high-frequency internal Debug logs during normal collection.
  2. Added upload request compression configuration via setCompressIntakeRequests(...); deflate is enabled by default, and it falls back to plaintext upload when unavailable.
  3. Added automatic sync and upload control configuration; use FTSDKConfig.setAutoSync(...) to set the initialization state, or change the sync state at runtime via FTSDK.setAutoSync(...); automatic upload uses a 10-second aggregation window by default; when disabled or when immediate upload is needed, call FTSDK.flushSyncData().
  4. Added sync paging configuration via setSyncPageSize(...) for predefined paging, or setCustomSyncPageSize(...) to customize the number of sync entries.
  5. Added upload network configuration via setProxy(...), setProxyAuthenticator(...), and setDns(...) to set the proxy, proxy authentication, and DNS respectively.
  6. Optimized thread pools and serial database task processing, improving data consistency in high-concurrency scenarios.
  7. Optimized the idle reclamation strategy for ANR and Crash Workers, with Workers rebuilt on demand.
  8. Changed the collection condition for Native Crash diagnostic logs: they are collected only when a RUM App ID is configured and FTRUMConfig.setEnableTrackAppCrash(true) is enabled.
  9. Added SDK debug configuration; set the log level via FTSDKConfig.setSdkLogLevel(...) and write internal log files via FTSDKConfig.setEnableInnerLogFile(...).
  10. Added FTTraceConfig.setTraceHeaderHandler(...) to provide a custom Trace context for a single request, so the SDK can inject request Headers and correlate RUM Resources.
  11. Changed the RUM and Log cache count configuration: the RUM cache count is now set via FTRUMConfig.setRumCacheLimitCount(...); the Log cache count continues to use FTLoggerConfig.setLogCacheLimitCount(...).
  12. Changed public exports: WebView integration, advanced RCP interceptor assembly, and Trace interceptor types are exported via the root Index, so imports from internal paths are no longer needed.
  13. Fixed missing dynamic properties (including user data) when View data is confirmed.
  14. Fixed occasional instability of randomly assigned user IDs.
  15. Added a compatible automatic collection path for @ohos/axios: axios versions that do not support interceptorChain can call applyFTAxiosTrack(...) to collect data through request and response interceptors.

More logs

@cloudcare/hvigor-ohos-plugin

0.1.2

  1. Added automatic Session Replay collection (experimental), supporting ArkUI @Entry pages, ArkWeb, touch, and Router page transition animations; the HAP must depend on ft_session_replay and complete initialization, and touch coordinates require TouchPrivacy.SHOW. Default system page transition animations may differ in replays.
  2. Fixed build and runtime errors and missing log parameters caused by automatic collection of console.* and hilog.*.
  3. Fixed cold start collection for entries that inherit UIAbility and InsightIntent, retaining the original lifecycle callbacks; when AbilityStage is not configured, an approximate initialization duration is used.
  4. Added build diagnostic hints for automatic collection, helping locate the source positions and reasons why it does not take effect.
  5. Changed automatic collection to take effect based on module dependencies; each module to be collected must declare the corresponding SDK in its own oh-package.json5 dependencies; also fixed some modules being missed in multi-HAP builds.
  6. Optimized instrumentation code generation for console.*, hilog.*, and the first-frame callback, avoiding redundant leading semicolons when the previous statement already ends with a semicolon.

0.1.1 (2026/09/14)

  1. Fixed console log instrumentation potentially not taking effect when cold start and console.*/hilog.* automatic collection are enabled at the same time.

0.1.0 (2026/09/14)

  1. Added compile-time instrumentation supporting automatic collection of console.* and hilog.* logs.
  2. Added cold start compile-time instrumentation supporting automatic recording of key cold start stages.
  3. Fixed first-frame observation for cold start failing to register before WindowStage.loadContent(...) completes; it now retries automatically after loading succeeds.

More logs

ft_session_replay (Experimental)

0.1.0-alpha04 (2026/11/02)

  1. Added ArkUI and ArkWeb session replay, supporting text, layout, scrolling, control interactions, page switching, and recording of images, canvas, ImageAnimator, and pattern lock; unsupported image sources can be supplemented manually as needed. It requires ft_sdk 0.1.18-alpha04 or later, and ArkUI automatic collection requires integrating the Hvigor plugin. See integration instructions.
  2. Added recording sampling and error-triggered recording; setSampleRate(...) and setSessionReplayOnErrorSampleRate(...) use percentage sampling values in [0,100], and error-triggered recording retains the data from the minute before the error by default.
  3. Added privacy controls via setTextAndInputPrivacy(...), setImagePrivacy(...), setTouchPrivacy(...), and setCaptureVisiblePassword(...) to control text, image, touch, and visible password collection; sensitive content is protected by default.
  4. Added RUM correlation and version information; you can select the RUM information included in replays via enableLinkRUMKeys(...), and report the current module version via sdk_pkg_info.replay during initialization.
  5. Added recording control and local caching; control collection via setDelayInit(true), start(), and disable(); disable() stops new collection while existing caches can still be uploaded periodically or immediately via flush(), using the core SDK's DataKit/DataWay address by default.

More logs

ft_sdk_ext

0.1.18

  1. Added the networkErrorHandler configuration for the NetworkKit HTTP interceptor chain, which can override the global handler; when the callback returns true, only Network Errors are filtered and Resources are kept; setting it to null disables the global handler.
  2. Added upload size collection for NetworkKit and Axios, supplementing the actual request body byte count into resource_request_size; fixed duplicate registration in Axios collection and service upload callbacks not being restored after a request ends.
  3. Fixed NetworkKit upload listeners not being cleaned up in time, abnormal Resource correlation after redirects, and old request callbacks still being processed after the SDK is closed; when there is no end callback after a request is canceled or destroyed, call disposeFTHttpTrack(request) to release collection resources.

0.1.17 (2026/09/11)

  1. Added NetworkKit response performance timing collection and passed it to the Resource waterfall chart; when performance timings are missing or invalid, it falls back to the actual total request duration.
  2. Fixed the issue where transmission failures without an HTTP response in the NetworkKit interceptor chain produced only a responseCode=0 Resource and lacked an associated Network Error; now both a Resource containing diagnostic error information and a Network Error are reported, without changing the caller's original failure result.

0.1.16 (2026/08/31)

  1. Changed the ft_sdk_ext version to 0.1.16 as a version alignment update; the interceptor API and behavior are unchanged.

0.1.15 (2026/07/29)

  1. Changed the ft_sdk_ext version to 0.1.15 as a version alignment update; the interceptor API and behavior are unchanged.

0.1.14 (2026/07/17)

  1. Changed the integration approach of the NetworkKit interceptor to use a versioned FTSDKExtensionBridge contract, preventing ft_sdk_ext from depending on internal source paths such as ft_sdk/src/main/....
  2. Changed the minimum compatible API Level to 22.
  3. Changed the distribution of the NetworkKit HttpInterceptor API by splitting it into the extension HAR; integrate ft_sdk_ext when using this API.
  4. Added createFTHttpInterceptorChain(...) to support NetworkKit automatic collection.
  5. Added applyFTHttpTrack(...) to support HTTP automatic collection integration.
  6. Added applyFTAxiosChainMethodBridge(...) to support axios interceptorChain automatic collection.

More logs

ft_native

0.1.3

  1. Added the Native Crash callback field app_running_unique_id, allowing different process runs with the same crash stack to be distinguished; existing integrations require no changes.

0.1.2 (2026/09/11)

  1. Optimized Native Crash monitoring diagnostic logs: detailed NAPI, signal handling, and crash parsing logs on normal paths are adjusted to Debug level, and redundant lifecycle logs are removed; the collection API and behavior are unchanged.

0.1.1 (2026/07/29)

  1. Changed the ft_native version to 0.1.1 as a version alignment update; the Native Crash API and behavior are unchanged.

0.1.0 (2026/07/17)

  1. Added independent Native Crash collection.
  2. Optimized Native Crash collection logic: it automatically adapts based on the installed ft_sdk dependency and passes only genuine native crashes to FTNativeCrashAdapter; JavaScript crashes continue to be handled by the ft_sdk Error collection pipeline to avoid duplicate reporting.

More logs

Feedback

Is this page helpful?