Skip to content

Commit 835e7a1

Browse files
feat(errors): add errors and trace.sampled to schema (#150)
* add errors and trace.sampled to schema * style(lint): Auto commit lint changes * fix errors type * style(lint): Auto commit lint changes --------- Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
1 parent 0fc0452 commit 835e7a1

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

schemas/events.v1.schema.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,21 @@
430430
"description": " The environment name, such as `production` or `staging`.\n\n ```json\n { \"environment\": \"production\" }\n ```",
431431
"type": ["string", "null"]
432432
},
433+
"errors": {
434+
"description": " Errors encountered during processing. Intended to be phased out in favor of\n annotation/metadata system.",
435+
"default": null,
436+
"type": ["array", "null"],
437+
"items": {
438+
"anyOf": [
439+
{
440+
"$ref": "#/definitions/EventProcessingError"
441+
},
442+
{
443+
"type": "null"
444+
}
445+
]
446+
}
447+
},
433448
"event_id": {
434449
"description": " Unique identifier of this event.\n\n Hexadecimal string representing a uuid4 value. The length is exactly 32 characters. Dashes\n are not allowed. Has to be lowercase.\n\n Even though this field is backfilled on the server with a new uuid4, it is strongly\n recommended to generate that uuid4 clientside. There are some features like user feedback\n which are easier to implement that way, and debugging in case events get lost in your\n Sentry installation is also easier.\n\n Example:\n\n ```json\n {\n \"event_id\": \"fc6d8c0c43fc4630ad850ee518f1b9d0\"\n }\n ```",
435450
"anyOf": [
@@ -1038,6 +1053,31 @@
10381053
}
10391054
]
10401055
},
1056+
"EventProcessingError": {
1057+
"description": " An event processing error.",
1058+
"anyOf": [
1059+
{
1060+
"type": "object",
1061+
"required": ["type"],
1062+
"properties": {
1063+
"name": {
1064+
"description": " Affected key or deep path.",
1065+
"default": null,
1066+
"type": ["string", "null"]
1067+
},
1068+
"type": {
1069+
"description": " The error kind.",
1070+
"type": ["string", "null"]
1071+
},
1072+
"value": {
1073+
"description": " The original value causing this error.",
1074+
"default": null
1075+
}
1076+
},
1077+
"additionalProperties": false
1078+
}
1079+
]
1080+
},
10411081
"EventType": {
10421082
"description": "The type of an event.\n\nThe event type determines how Sentry handles the event and has an impact on processing, rate limiting, and quotas. There are three fundamental classes of event types:\n\n- **Error monitoring events** (`default`, `error`): Processed and grouped into unique issues based on their exception stack traces and error messages. - **Security events** (`csp`, `hpkp`, `expectct`, `expectstaple`): Derived from Browser security violation reports and grouped into unique issues based on the endpoint and violation. SDKs do not send such events. - **Transaction events** (`transaction`): Contain operation spans and collected into traces for performance monitoring.",
10431083
"type": "string",
@@ -2035,6 +2075,10 @@
20352075
"type": "null"
20362076
}
20372077
]
2078+
},
2079+
"sampled": {
2080+
"description": " Whether the trace connected to the event has been sampled as part of dynamic sampling",
2081+
"type": ["boolean", "null"]
20382082
}
20392083
},
20402084
"additionalProperties": true

0 commit comments

Comments
 (0)