Fixed an issue introduced in version 1.6.16: remote dynamic configuration did not take effect on first load.
Added TraceContext and TraceContext.Simple for custom Trace Header handling.
By overriding HeaderHandler.getTraceContext(Request), you can provide headers, traceId, and spanId at once,
fully compatible with existing getTraceHeader, getTraceID / getSpanID implementations.
Support dynamically changing transmission addresses via FTSdk.setDatakitUrl(url), FTSdk.setDatawayUrl(datawayUrl, clientToken).
Added illegal character filtering for globalContext and attribute keys.
Expanded resource_type support range, added new types: image, media, font, CSS, JS, native.
Support custom parsing and configuration of remote variables via FTSDKConfig.setRemoteConfigurationCallBack(FTRemoteConfigManager.FetchResult), FTSdk.updateRemoteConfig(int remoteConfigMiniUpdateInterval, FTRemoteConfigManager.FetchResult result).
Added resource_http_protocol, resource_request_size, resource_connection_reuse fields to Resource.
Refined cold start time metrics, added app_pre_application_init_time, app_application_init_time, and app_first_frame_init_time.
Added compatibility support for OkHttp versions 3.12 and above.
Fixed inaccurate Resource request start time issue.
Fixed occasional NullPointerException when obtaining Action and View during SDK shutdown process.
Optimized error stack format, fixed line break errors in specific scenarios.
Added limited Long Task monitoring capability when the app is in the background.
Optimized Session refresh mechanism when the app is in the background.
Optimized nanosecond-level duration calculation logic in Action, View, and Resource.
Used ContentProvider to optimize compatibility issues in high-load multi-process data collection scenarios.
Removed SDK AndroidManifest declaration for android.permission.READ_PHONE_STATE. Integrators need to add it themselves based on actual requirements. Permission usage instructions can be found in the integration documentation.
Restricted data synchronization in child processes. Data collected by child processes will be reported by the main process.
Added FTRUMConfig.setActionTrackingHandler to support custom user action tracking. This handler allows developers to customize how user actions (app launch, clicks) are tracked in RUM data. Developers can modify action names, add custom attributes, or skip tracking for specific actions.
Added FTRUMConfig.setViewActivityTrackingHandler to support custom Activity page tracking. This handler allows developers to customize how Activity pages are tracked in RUM data. Developers can modify page names, add custom attributes, or skip tracking for specific Activities.
Added FTRUMConfig.setViewFragmentTrackingHandler to support custom Fragment page tracking. This handler allows developers to customize how Fragment pages are tracked in RUM data. Developers can modify page names, add custom attributes, or skip tracking for specific Fragments.
Fixed issue where FTRUMGlobalManager.addAction lacked binding information for bindUserData, such as userid.
Added load_time data metric for Fragment in View.
Added FTRUMGlobalManager.updateTime for customizing the current view's loading time.
Improved compatibility with OkHttp 3.12.x versions.
Tags added via FTRUMConfig.appendRUMGlobalContext can be updated during a session.
Added FTRUMConfig.setEnableTraceWebView to configure whether to enable WebView data collection via Android SDK.
Use FTRUMConfig.setAllowWebViewHost to control which host addresses to filter.
Added ContentHandlerHelperEx.onExceptionWithFilter, which can filter local network errors.
Added FTSDKConfig.setRemoteConfiguration to support enabling remote conditional configuration feature.
Added FTSDKConfig.setRemoteConfigMiniUpdateInterval to support setting the minimum update interval after enabling remote control.
Added FTRUMConfig.setEnableTraceUserViewInFragment to support fragment view data collection, default is false.
Added FTSDKConfig.setLineDataModifier, FTSDKConfig.setDataModifier to support data write replacement, enabling data desensitization.
Added FTRUMConfig.setSessionErrorSampleRate to support error sampling. When not sampled by setSamplingRate,
errors can trigger sampling collection of RUM data from up to 1 minute ago.
When FTSDKConfig.setEnableAccessAndroidID(false), use a local random uuid as device_uuid.
Optimized high-frequency log writing, data synchronization, and idle shutdown logic.
Added FTSDKConfig.setEnableOkhttpRequestTag to support adding a unique ResourceID to okhttp requests,
solving the issue of trace_id and span_id misalignment in high-concurrency scenarios for identical requests. ft-plugin version 1.3.5 and above supports automatic ResourceID addition.
Fixed an issue where repeated initialization of RUM configuration could cause circular calls with other crash collection SDKs.
When navigating from a native page to a WebView page, the native page name is used to populate view_referrer.
Fixed issue where IOException from network requests was re-thrown, altering the original exception type.
Added setProxy, setProxyAuthenticator, setDns to FTSDKConfig for configuring Proxy, ProxyAuthenticator, and Dns for OkHttp data synchronization network requests.
OkHttp data synchronization network requests support DNS IP round-robin connection for known hostNames.
Modified the isAppForeground judgment mechanism to adapt to privacy-sensitive information detection.
Added resource data fields: resource_first_byte_time, resource_dns_time,
resource_download_time, resource_connect_time, resource_ssl_time.
Supports enhanced Resource duration display on TrueWatch and alignment with the APM flame graph timeline.
Optimized synchronization retry mechanism, removed the configuration option FTSDKConfig.setDataSyncRetryCount(0) which directly discarded data.
FTSDKConfig.enableDataIntegerCompatible is enabled by default for compatibility with web numeric floating-point data types.
Fixed issue where repeated initialization of RUM configuration could cause duplicate crash data generation.
Support for custom FTTraceInterceptor.HeaderHandler to correlate with RUM data.
Support for modifying ASM-written FTTraceInterceptor.HeaderHandler content via FTRUMConfig.setOkHttpTraceHeaderHandler,
and modifying ASM-written FTResourceInterceptor.ContentHandlerHelper content via FTRUMConfig.setOkHttpResourceContentHandler.
Optimized crash collection capability, adapting to scenarios where system.exit triggered by certain OS prevents crash data collection.
Fixed occasional issue where tag was an empty string, causing data to fail normal reporting.
Optimized ASM OkHttpListener EventListener override logic, supporting preservation of original project EventListener event parameter passing.
Optimized network status and type acquisition, supporting display of ethernet network type.
Optimized frequent database closure issue during data writing when no network is available.
Fixed discrepancy between the number of discarded log/RUM entries and the configured limit when discarding old data.
Adapted TV device key events, filtering out non-TV device tags.
Support limiting RUM data cache entry count upper limit via FTRUMConfig.setRumCacheLimitCount(int), default is 100_000.
Support limiting total cache size via FTSDKConfig enableLimitWithDbSize(long dbSize). After enabling,
FTLoggerConfig.setLogCacheLimitCount(int) and FTRUMConfig.setRumCacheLimitCount(int) will become ineffective.
Optimized Session refresh rules when the device is idle.
Fixed issue where custom startView calls in RUM alone caused the monitoring metric FTMetricsMTR thread not to be recycled.
Support adding dynamic attributes via FTSdk.appendGlobalContext(globalContext), FTSdk.appendRUMGlobalContext(globalContext),
FTSdk.appendLogGlobalContext(globalContext).
Support clearing unsynced cached data via FTSdk.clearAllData().
SDK setSyncSleepTime maximum limit extended to 5000 ms.
Optimized data storage and synchronization performance.
(Upgrading from older versions to 1.6.0 requires configuring FTSDKConfig.setNeedTransformOldCache for old data compatibility synchronization.)
Fixed issue where calling Log.w(String,Throwable) with ft-plugin caused an exception.