Skip to content

Commit

Permalink
feat(errors): add errors and trace.sampled to schema (#150)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
barkbarkimashark and getsantry[bot] committed Jun 16, 2023
1 parent 0fc0452 commit 835e7a1
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions schemas/events.v1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,21 @@
"description": " The environment name, such as `production` or `staging`.\n\n ```json\n { \"environment\": \"production\" }\n ```",
"type": ["string", "null"]
},
"errors": {
"description": " Errors encountered during processing. Intended to be phased out in favor of\n annotation/metadata system.",
"default": null,
"type": ["array", "null"],
"items": {
"anyOf": [
{
"$ref": "#/definitions/EventProcessingError"
},
{
"type": "null"
}
]
}
},
"event_id": {
"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 ```",
"anyOf": [
Expand Down Expand Up @@ -1038,6 +1053,31 @@
}
]
},
"EventProcessingError": {
"description": " An event processing error.",
"anyOf": [
{
"type": "object",
"required": ["type"],
"properties": {
"name": {
"description": " Affected key or deep path.",
"default": null,
"type": ["string", "null"]
},
"type": {
"description": " The error kind.",
"type": ["string", "null"]
},
"value": {
"description": " The original value causing this error.",
"default": null
}
},
"additionalProperties": false
}
]
},
"EventType": {
"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.",
"type": "string",
Expand Down Expand Up @@ -2035,6 +2075,10 @@
"type": "null"
}
]
},
"sampled": {
"description": " Whether the trace connected to the event has been sampled as part of dynamic sampling",
"type": ["boolean", "null"]
}
},
"additionalProperties": true
Expand Down

0 comments on commit 835e7a1

Please sign in to comment.