Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
oioki committed Nov 6, 2023
1 parent ce0447a commit e9f7d58
Showing 1 changed file with 94 additions and 0 deletions.
94 changes: 94 additions & 0 deletions relay/event.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,9 @@
{
"$ref": "#/definitions/CloudResourceContext"
},
{
"$ref": "#/definitions/NelContext"
},
{
"type": "object",
"additionalProperties": true
Expand Down Expand Up @@ -1490,6 +1493,7 @@
"hpkp",
"expectct",
"expectstaple",
"nel",
"transaction",
"userreportv2",
"default"
Expand Down Expand Up @@ -2586,6 +2590,88 @@
}
]
},
"NelContext": {
"description": " Contains NEL report information.\n\n Network Error Logging (NEL) is a browser feature that allows reporting of failed network\n requests from the client side. See the following resources for more information:\n\n - [W3C Editor's Draft](https://w3c.github.io/network-error-logging/)\n - [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Network_Error_Logging)",
"anyOf": [
{
"type": "object",
"properties": {
"elapsed_time": {
"description": " The number of milliseconds between the start of the resource fetch and when it was aborted by the user agent.",
"default": null,
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"error_type": {
"description": " If request failed, the type of its network error. If request succeeded, \"ok\".",
"default": null,
"type": [
"string",
"null"
]
},
"phase": {
"description": " If request failed, the phase of its network error. If request succeeded, \"application\".",
"default": null,
"anyOf": [
{
"$ref": "#/definitions/NetworkReportPhases"
},
{
"type": "null"
}
]
},
"sampling_fraction": {
"description": " The sampling rate.",
"default": null,
"type": [
"number",
"null"
],
"format": "double"
},
"server_ip": {
"description": " Server IP where the requests was sent to.",
"default": null,
"anyOf": [
{
"$ref": "#/definitions/String"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
]
},
"NetworkReportPhases": {
"description": " Describes which phase the error occurred in.",
"anyOf": [
{
"type": "object",
"additionalProperties": false
},
{
"type": "object",
"additionalProperties": false
},
{
"type": "object",
"additionalProperties": false
},
{
"type": "string"
}
]
},
"NsError": {
"description": " NSError informaiton.",
"anyOf": [
Expand Down Expand Up @@ -2982,6 +3068,14 @@
"null"
]
},
"protocol": {
"description": " HTTP protocol.",
"default": null,
"type": [
"string",
"null"
]
},
"query_string": {
"description": " The query string component of the URL.\n\n Can be given as unparsed string, dictionary, or list of tuples.\n\n If the query string is not declared and part of the `url`, Sentry moves it to the\n query string.",
"default": null,
Expand Down

0 comments on commit e9f7d58

Please sign in to comment.