-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protobufize events to protect from malformed JSON (#2085)
* Protobuf all the things * oops * Protobufize events to protect from malformed JSON * format the generated files (will need to remember this for future) * format * clean up kafka produce serializer * fixes
- Loading branch information
1 parent
d95c8c8
commit 83b5273
Showing
18 changed files
with
445 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
syntax = "proto3"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
message Element { | ||
string uuid = 1; | ||
string event_uuid = 2; | ||
string text = 3; | ||
string tag_name = 4; | ||
string href = 5; | ||
string attr_id = 6; | ||
repeated string attr_class = 7; | ||
uint64 nth_child = 8; | ||
uint64 nth_of_type = 9; | ||
string attributes = 10; | ||
uint64 order = 11; | ||
uint64 team_id = 12; | ||
google.protobuf.Timestamp created_at = 13; | ||
string elements_hash = 14; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
syntax = "proto3"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
message Event { | ||
string uuid = 1; | ||
string event = 2; | ||
string properties = 3; | ||
string timestamp = 4; | ||
uint64 team_id = 5; | ||
string distinct_id = 6; | ||
string created_at = 7; | ||
string elements_chain = 8; | ||
google.protobuf.Timestamp proto_created_at = 9; | ||
google.protobuf.Timestamp proto_timestamp = 10; | ||
} |
Oops, something went wrong.