Skip to content

Commit 6ec4c12

Browse files
feat(eap): Add EAP mutations topic (#333)
* add eap mutations topic * style(lint): Auto commit lint changes * style(lint): Auto commit lint changes * fix incorrect names * style(lint): Auto commit lint changes * style(lint): Auto commit lint changes * add codeowner * revert reformat * fix codeowners * fix schema --------- Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
1 parent 4fed335 commit 6ec4c12

File tree

4 files changed

+95
-0
lines changed

4 files changed

+95
-0
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
/topics/snuba-metrics-summaries.yaml @getsentry/owners-snuba @getsentry/profiling
3939
/topics/snuba-profile-chunks.yaml @getsentry/owners-snuba @getsentry/profiling
4040
/topics/snuba-spans.yaml @getsentry/owners-snuba @getsentry/performance
41+
/topics/snuba-eap-mutations.yaml @getsentry/owners-snuba
4142

4243
# Topics produced by Sentry
4344
/topics/buffered-segments.yaml @getsentry/owners-snuba @getsentry/performance
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"filter": {
3+
"organization_id": 1500,
4+
"_sort_timestamp": 150,
5+
"trace_id": "deadbeefdeadbeefdeadbeefdeadbeef",
6+
"span_id": "deadbeefdeadbeef"
7+
},
8+
"update": {
9+
"attr_str": {
10+
"a": "b"
11+
},
12+
"attr_num": {
13+
"c": 147174124.3
14+
}
15+
}
16+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$ref": "#/definitions/Main",
4+
"definitions": {
5+
"Main": {
6+
"type": "object",
7+
"title": "eap_mutation",
8+
"properties": {
9+
"filter": {
10+
"type": "object",
11+
"additionalProperties": false,
12+
"properties": {
13+
"organization_id": {
14+
"$ref": "#/definitions/UInt"
15+
},
16+
"_sort_timestamp": {
17+
"$ref": "#/definitions/UInt"
18+
},
19+
"trace_id": {
20+
"$ref": "#/definitions/UUID",
21+
"description": "The trace ID is a unique identifier for a trace. It is a 16 byte hexadecimal string."
22+
},
23+
"span_id": {
24+
"type": "string",
25+
"description": "The span ID is a unique identifier for a span within a trace. It is an 8 byte hexadecimal string."
26+
}
27+
}
28+
},
29+
"update": {
30+
"type": "object",
31+
"additionalProperties": false,
32+
"properties": {
33+
"attr_str": {
34+
"type": "object",
35+
"additionalProperties": {
36+
"type": "string"
37+
}
38+
},
39+
"attr_num": {
40+
"type": "object",
41+
"additionalProperties": {
42+
"type": "number"
43+
}
44+
}
45+
}
46+
}
47+
},
48+
"additionalProperties": false
49+
},
50+
"UInt": {
51+
"type": "integer",
52+
"minimum": 0
53+
},
54+
"UUID": {
55+
"type": "string",
56+
"minLength": 32,
57+
"maxLength": 36
58+
}
59+
}
60+
}

topics/snuba-eap-mutations.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
description: Mutations updates for spans
2+
services:
3+
producers:
4+
- getsentry/sentry
5+
consumers:
6+
- getsentry/snuba
7+
schemas:
8+
- version: 1
9+
compatibility_mode: none
10+
type: json
11+
resource: snuba-eap-mutations.v1.schema.json
12+
examples:
13+
- snuba-eap-mutations/
14+
topic_creation_config:
15+
compression.type: lz4
16+
retention.ms: "86400000"
17+
max.message.bytes: "10000000"
18+
message.timestamp.type: LogAppendTime

0 commit comments

Comments
 (0)