Skip to main content

TraceCategoriesAndOptions 对象

🌐 TraceCategoriesAndOptions Object

  • categoryFilter string - 用于控制应跟踪哪些类别组的过滤器。过滤器可以有一个可选的 '-' 前缀,以排除包含匹配类别的类别组。同一列表中不支持同时包含包含和排除的类别模式。示例:test_MyTest*test_MyTest*,test_OtherStuff-excluded_category1,-excluded_category2
  • traceOptions string - 控制启用哪种类型的跟踪,它是以下字符串的逗号分隔序列:record-until-fullrecord-continuouslytrace-to-consoleenable-samplingenable-systrace,例如'record-until-full,enable-sampling'。前三个选项是追踪记录模式,因此是互斥的。如果在traceOptions字符串中出现多个追踪记录模式,则最后一个优先。如果未指定任何追踪记录模式,则记录模式为record-until-full。跟踪选项将在从traceOptions解析选项应用之前,先重置为默认选项(record_mode设置为record-until-fullenable_samplingenable_systrace设置为false)。