Skip to content

Commit cf8224f

Browse files
authored
feat: Add generic-events topic (#154)
Currently this points at the same schema as "events". Though technically there are only inserts on this topic and not replacements.
1 parent 606ce17 commit cf8224f

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/topics/outcomes.yaml @getsentry/owners-snuba
1010
/topics/snuba-metrics.yaml @getsentry/owners-snuba
1111
/topics/snuba-generic-metrics.yaml @getsentry/owners-snuba
12+
/topics/generic-events.yaml @getsentry/owners-snuba @getsentry/issues
1213

1314
# Internal Snuba topics
1415
/topics/snuba-queries.yaml @getsentry/owners-snuba

examples/generic-events/1/insert.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[
2+
2,
3+
"insert",
4+
{
5+
"data": {
6+
"environment": "production",
7+
"event_id": "9cdc4c32dff14fbbb012b0aa9e908126",
8+
"level": "error",
9+
"logger": "",
10+
"platform": "javascript",
11+
"received": 1677512412.437706,
12+
"release": "123abc",
13+
"timestamp": 1677512412.223,
14+
"type": "error",
15+
"version": "7"
16+
},
17+
"datetime": "2023-02-27T15:40:12.223000Z",
18+
"event_id": "9cdc4c32dff14fbbb012b0aa9e908126",
19+
"group_id": 124,
20+
"group_ids": [124],
21+
"message": "hello world",
22+
"organization_id": 123,
23+
"platform": "javascript",
24+
"primary_hash": "061cf02b26374d108694d6643a7a2f4e",
25+
"project_id": 6036610
26+
},
27+
{
28+
"group_states": [
29+
{
30+
"id": "124",
31+
"is_new": false,
32+
"is_new_group_environment": false,
33+
"is_regression": false
34+
}
35+
],
36+
"is_new": false,
37+
"is_new_group_environment": false,
38+
"is_regression": false,
39+
"queue": "post_process_errors",
40+
"skip_consume": false
41+
}
42+
]

topics/generic-events.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
topic: generic-events
2+
pipeline: generic_events
3+
description: Issue platform
4+
services:
5+
producers:
6+
- getsentry/sentry
7+
consumers:
8+
- getsentry/snuba
9+
schemas:
10+
- version: 1
11+
compatibility_mode: none
12+
type: json
13+
resource: events.v1.schema.json
14+
examples:
15+
- generic-events/1/

0 commit comments

Comments
 (0)