FTRUMManager class
Methods
-
addCustomError(String stack, String message, {Map<String, String>? property, String? errorType})
→ Future<void>
-
添加自定义错误
stack
堆栈日志
message
错误信息
appState 应用状态
errorType
自定义 errorType
property
附加属性参数(可选)
-
addError(Object obj, StackTrace stack)
→ void
-
其它异常捕获与日志收集
obj
错误内容
stack
堆栈日志
-
addFlutterError(FlutterErrorDetails error)
→ void
-
Flutter 框架异常捕获
error
错误日志
-
addResource({required String key, required String url, required String httpMethod, String? responseBody = "", int? resourceStatus})
→ Future<void>
-
发送资源数据指标
key
唯一 id
url
请求地址
httpMethod
请求方法
requestHeader
请求头参数
responseHeader
返回头参数
responseBody
返回内容
resourceStatus
返回状态码
-
createView(String viewName, int duration)
→ Future<void>
-
view 创建,这个方法需要在 starView 之前被调用,目前 flutter route 中未有
viewName
界面名称
duration
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
setConfig({String? androidAppId, String? iOSAppId, double? sampleRate, bool enableUserResource = false, bool? enableNativeUserAction, bool? enableNativeUserView, bool? enableNativeUserResource, bool? enableNativeAppUIBlock, int? errorMonitorType, int? deviceMetricsMonitorType, DetectFrequency? detectFrequency, Map<String, String>? globalContext})
→ Future<void>
-
设置 RUM 追踪条件
androidAppId
appId,监测中申请
iOSAppId
appId,监测中申请
sampleRate
采样率
enableNativeUserAction
是否进行 Native Action 追踪,Button 点击事件,纯 flutter 应用建议关闭
enableNativeUserView
是否进行 Native View 自动追踪,纯 Flutter 应用建议关闭
enableNativeUserResource
是否进行 Native Resource 自动追踪,纯 Flutter 应用建议关闭
errorMonitorType
监控补充类型
deviceMonitorType
监控补充类型
globalContext
自定义全局参数
-
startAction(String actionName, String actionType, {Map<String, String>? property})
→ Future<void>
-
添加 action
actionName
action 名称
actionType
action 类型
property
附加属性参数(可选)
-
startResource(String key, {Map<String, String>? property})
→ Future<void>
-
开始资源请求
key
唯一 id
property
附加属性参数(可选)
-
starView(String viewName, {Map<String, String>? property})
→ Future<void>
-
view 开始
viewName
界面名称
viewReferer
前一个界面名称
property
附加属性参数(可选)
-
stopResource(String key, {Map<String, String>? property})
→ Future<void>
-
结束资源请求
key
唯一 id
property
附加属性参数(可选)
-
stopView({Map<String, String>? property})
→ Future<void>
-
view 结束
property
附加属性参数(可选)
-
toString()
→ String
-
A string representation of this object.
inherited