Elysia Tools
Navegação
Ferramentas de desenvolvedor
LogRocket: exercícios sintéticos offline
Inspecione três casos finitos: Remover conteúdo de requisições, Lista local de níveis, Desativar toda captura.
Exemplos
Entradas desta coleção
Remover conteúdo de requisições
Permita apenas method e status do objeto sintético; remova headers e 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
Lista local de níveis
Conte somente warn e error em cinco rótulos inventados; ignore debug e 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
Desativar toda captura
Exija false booleano em networkCapture, consoleCapture, domCapture e exportEnabled.
{
"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
Ferramentas
Ferramentas frequentemente usadas com este exemplo
Relacionado
Coleções de exemplos relacionadas
Relacionado