| 指标 | 描述 |
|---|---|
| cold_start_duration | 冷启动持续时间:从应用进程创建到首个 Activity 渲染完成的时间。 |
| warm_start_duration | 温启动持续时间:应用进程已存在,从 Activity 开始到渲染完成的时间。 |
| hot_start_duration | 热启动持续时间:应用和 Activity 都在内存中,从 Activity 恢复到渲染完成的时间。 |
| activity_start_duration | Activity 启动持续时间:从 onCreate 到首帧绘制完成的时间。 |
| is_pre_warmed | 布尔值,指示应用是否通过预热启动(Android 11+)。 |
RumMonitor.startView() 和 RumMonitor.stopView() 来自定义 View 追踪。| 属性名 | 类型 | 描述 |
|---|---|---|
application.id | string | FlashCat 应用 ID。 |
application.name | string | 应用包名(例如 com.example.app)。 |
application.version | string | 应用版本名称。 |
application.build | string | 应用构建版本号。 |
session.id | string | 唯一会话 ID,用于将用户旅程中的事件分组。 |
session.type | string | 会话类型:user。 |
view.id | string | 为每个 View 生成的唯一 ID。 |
view.url | string | View 的规范化 URL(Activity 或 Fragment 的类名)。 |
view.name | string | 可自定义的 View 名称。 |
env | string | 应用的环境名称(例如 prod、dev)。 |
service | string | 服务名称,用于区分应用的不同模块或微服务。 |
version | string | 应用版本。 |
sdk_version | string | FlashCat SDK 版本。 |
date | number | 事件发生的时间戳(epoch 毫秒)。 |
type | string | 事件类型(例如 view、resource、action、error、long_task)。 |
| 属性名 | 类型 | 描述 |
|---|---|---|
device.type | string | 设备类型,如 mobile、tablet、tv 等。 |
device.name | string | 设备商业名称(例如 Samsung Galaxy S21)。 |
device.model | string | 设备型号(例如 SM-G991B)。 |
device.brand | string | 设备品牌(例如 Samsung)。 |
device.architecture | string | 设备架构(例如 arm64-v8a)。 |
device.marketing_name | string | 设备的市场营销名称。 |
| 属性名 | 类型 | 描述 |
|---|---|---|
connectivity.status | string | 设备网络可达性状态(connected、not_connected、maybe)。 |
connectivity.interfaces | array | 可用网络接口列表(例如 wifi、cellular、ethernet)。 |
connectivity.cellular.technology | string | 蜂窝网络技术类型(例如 LTE、5G)。 |
connectivity.cellular.carrier_name | string | 运营商名称(例如 中国移动)。 |
| 属性名 | 类型 | 描述 |
|---|---|---|
os.name | string | 操作系统名称(例如 Android)。 |
os.version | string | 操作系统版本(例如 13)。 |
os.version_major | string | 操作系统主版本号(例如 13)。 |
os.build | string | 系统构建号(例如 TQ2A.230505.002)。 |
| 属性名 | 类型 | 描述 |
|---|---|---|
geo.country | string | 国家名称。 |
geo.country_iso | string | 国家的 ISO 代码。 |
geo.city | string | 城市名称。 |
setUser() API 设置用户信息,这些信息会被附加到所有 RUM 事件中:| 属性名 | 类型 | 描述 |
|---|---|---|
usr.id | string | 用户的唯一标识符。 |
usr.name | string | 用户的友好名称。 |
usr.email | string | 用户的电子邮件地址。 |
usr.plan、usr.role 等。| 属性名 | 类型 | 描述 |
|---|---|---|
session.id | string | 唯一会话 ID。 |
session.type | string | 会话类型:user。 |
session.has_replay | bool | 会话是否包含会话重放录制。 |
session.is_active | bool | 会话是否处于活动状态。 |
| 属性名 | 类型 | 描述 |
|---|---|---|
view.id | string | 每个 View 的唯一 ID。 |
view.name | string | View 的自定义名称。 |
view.url | string | View 的 URL(Activity 或 Fragment 类名)。 |
view.time_spent | number(ns) | 用户在此 View 上花费的时间。 |
view.loading_time | number(ns) | View 加载完成所需的时间。 |
view.loading_type | string | View 加载类型:initial_load、activity_display、fragment_display。 |
view.first_contentful_paint | number(ns) | 首次内容绘制时间(仅适用于 API 29+)。 |
view.action.count | number | View 中收集的所有操作的数量。 |
view.resource.count | number | View 中收集的所有资源的数量。 |
view.error.count | number | View 中收集的所有错误的数量。 |
view.long_task.count | number | View 中收集的所有长任务的数量。 |
view.crash.count | number | View 中收集的所有崩溃的数量。 |
view.is_active | bool | View 是否仍处于活动状态。 |
| 属性名 | 类型 | 描述 |
|---|---|---|
resource.id | string | 资源的唯一标识符。 |
resource.type | string | 资源类型(例如 xhr、fetch、image、css、js、font、media、other)。 |
resource.url | string | 资源的 URL。 |
resource.method | string | HTTP 方法(例如 GET、POST)。 |
resource.status_code | number | HTTP 响应状态码。 |
resource.duration | number(ns) | 加载资源所花费的总时间。 |
resource.size | number | 资源大小(字节)。 |
resource.dns.duration | number(ns) | DNS 解析时间(domainLookupEnd - domainLookupStart)。 |
resource.connect.duration | number(ns) | 建立连接的时间(connectEnd - connectStart)。 |
resource.ssl.duration | number(ns) | TLS 握手时间(connectEnd - secureConnectionStart),仅适用于 HTTPS。 |
resource.first_byte.duration | number(ns) | 等待首字节响应的时间(responseStart - requestStart)。 |
resource.download.duration | number(ns) | 下载响应的时间(responseEnd - responseStart)。 |
resource.redirect.duration | number(ns) | 后续 HTTP 重定向所花费的时间(redirectEnd - redirectStart)。 |
resource.provider.name | string | 资源提供商名称,默认为 unknown。 |
resource.provider.domain | string | 资源提供商域名。 |
resource.provider.type | string | 资源提供商类型(例如 first-party、cdn、ad、analytics)。 |
| 属性名 | 类型 | 描述 |
|---|---|---|
error.source | string | 错误来源(例如 webview、logger、network、source、console)。 |
error.type | string | 错误类型或错误代码。 |
error.message | string | 简洁、人类可读的单行错误消息。 |
error.stack | string | 堆栈跟踪或错误的补充信息。 |
error.issue_id | string | 错误问题的唯一标识符。 |
error.category | string | 错误的高级分类,可能的值:ANR(应用无响应)、Exception(异常)。 |
error.file | string | 发生错误的文件名(用于错误追踪问题)。 |
error.line | number | 发生错误的行号。 |
error.is_crash | bool | 指示该错误是否导致应用崩溃。 |
| 属性名 | 类型 | 描述 |
|---|---|---|
error.resource.status_code | number | HTTP 响应状态码。 |
error.resource.method | string | HTTP 方法(例如 POST、GET)。 |
error.resource.url | string | 资源 URL。 |
error.resource.provider.name | string | 资源提供商名称,默认为 unknown。 |
error.resource.provider.domain | string | 资源提供商域名。 |
error.resource.provider.type | string | 资源提供商类型(例如 first-party、cdn、ad、analytics)。 |
| 属性名 | 类型 | 描述 |
|---|---|---|
action.loading_time | number(ns) | 操作的加载时间。 |
action.long_task.count | number | 此操作收集的所有长任务数量。 |
action.resource.count | number | 此操作收集的所有资源数量。 |
action.error.count | number | 此操作收集的所有错误数量。 |
| 属性名 | 类型 | 描述 |
|---|---|---|
action.id | string | 用户操作的 UUID。 |
action.type | string | 用户操作类型(例如 tap、scroll、swipe、application_start)。 |
action.name | string | 用户操作的名称。 |
action.target.name | string | 用户交互的元素,仅适用于自动收集的操作。 |
/data/data/<package_name>/cache/com.flashcat.rum/beforeSend 回调进行混淆或过滤。