Commit 60a01495 authored by Dmytro Zaporozhets's avatar Dmytro Zaporozhets

Make error tracking payload less strict

Different language sdk can send different attributes. We restrict
payload schema validation to bare minimum to support that.
Signed-off-by: default avatarDmytro Zaporozhets <dzaporozhets@gitlab.com>
parent 45150e27
......@@ -27,94 +27,8 @@
"message": {
"type": "string"
},
"user": {
"type": "object",
"required": [],
"properties": {}
},
"tags": {
"type": "object",
"required": [],
"properties": {
"request_id": {
"type": "string"
}
}
},
"contexts": {
"type": "object",
"required": [],
"properties": {
"os": {
"type": "object",
"required": [],
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"build": {
"type": "string"
},
"kernel_version": {
"type": "string"
}
}
},
"runtime": {
"type": "object",
"required": [],
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"trace": {
"type": "object"
}
}
},
"fingerprint": {
"type": "array",
"items": {
"type": "string"
}
},
"breadcrumbs": {
"type": "object",
"required": [],
"properties": {
"values": {
"type": "array",
"items": {
"type": "object",
"required": [],
"properties": {
"category": {
"type": "string"
},
"data": {
"type": "object"
},
"message": {
"type": "string"
},
"timestamp": {
"type": "number"
}
}
}
}
}
},
"transaction": {
"type": "string"
"type": "object"
},
"platform": {
"type": "string"
......@@ -131,33 +45,6 @@
}
}
},
"request": {
"type": "object",
"required": [],
"properties": {
"url": {
"type": "string"
},
"method": {
"type": "string"
},
"headers": {
"type": "object"
},
"env": {
"type": "object",
"required": [],
"properties": {
"SERVER_NAME": {
"type": "string"
},
"SERVER_PORT": {
"type": "string"
}
}
}
}
},
"exception": {
"type": "object",
"required": [],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment