Elysia Tools
导航
开发者工具
LogRocket: 离线合成练习
检查三个有限测试: 删除请求内容, 本地级别白名单, 全部采集标志关闭.
案例
这个案例集合中的条目
删除请求内容
合成请求形状对象只允许method与status,不保留headers和body。
{
"scope": "explicitly synthetic, offline only; not product SDK configuration",
"fixtureVersion": 1,
"kind": "allowlist",
"allow": [
"method",
"status"
],
"input": {
"method": "GET",
"status": 204,
"headers": "synthetic secret placeholder",
"body": "synthetic text"
},
"expected": {
"method": "GET",
"status": 204
}
}- synthetic
- true
- offlineOnly
- true
- sdkIntegration
- false
本地级别白名单
五个合成标签只统计warn与error,忽略debug与info。
{
"scope": "explicitly synthetic, offline only; not product SDK configuration",
"fixtureVersion": 1,
"kind": "levels",
"allow": [
"warn",
"error"
],
"input": [
"debug",
"info",
"warn",
"error",
"warn"
],
"expected": {
"warn": 2,
"error": 1
}
}- synthetic
- true
- offlineOnly
- true
- sdkIntegration
- false
全部采集标志关闭
要求networkCapture、consoleCapture、domCapture、exportEnabled均为布尔false。
{
"scope": "explicitly synthetic, offline only; not product SDK configuration",
"fixtureVersion": 1,
"kind": "disabled",
"flags": {
"networkCapture": false,
"consoleCapture": false,
"domCapture": false,
"exportEnabled": false
},
"rule": "all flags must be false; application-owned policy, not SDK options",
"expected": true
}- synthetic
- true
- offlineOnly
- true
- sdkIntegration
- false
工具
经常与该案例搭配使用的工具
相关内容
相关案例集合
相关内容