Skip to content

Commit

Permalink
Add transaction model to modeldecoder/v2`
Browse files Browse the repository at this point in the history
Add transaction model to modeldecoder/rumv3`

Create mapping function

Create decoder and change processor
  • Loading branch information
simitt committed Sep 14, 2020
1 parent 41e1354 commit 10ef541
Show file tree
Hide file tree
Showing 43 changed files with 3,185 additions and 368 deletions.
2 changes: 1 addition & 1 deletion beater/api/intake/test_approved/InvalidEvent.approved.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"errors": [
{
"document": "{ \"transaction\": { \"id\": 12345, \"trace_id\": \"0123456789abcdef0123456789abcdef\", \"parent_id\": \"abcdefabcdef01234567\", \"type\": \"request\", \"duration\": 32.592981, \"span_count\": { \"started\": 21 } } } ",
"message": "failed to validate transaction: error validating JSON: I[#] S[#] doesn't validate with \"transaction#\"\n I[#] S[#/allOf/3] allOf failed\n I[#/id] S[#/allOf/3/properties/id/type] expected string, but got number"
"message": "decode error data read error: v2.transactionRoot.Transaction: v2.transaction.ID: ReadString: expects \" or n, but found 1, error found in #10 byte of ...| { \"id\": 12345, \"tra|..., bigger context ...|{ \"transaction\": { \"id\": 12345, \"trace_id\": \"0123456789abcdef0123456789abcde|..."
}
]
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"accepted": 1,
"accepted": 0,
"errors": [
{
"document": "{ \"invalid-json\" }",
"message": "data read error: ReadMapCB: expect : after object field, but found }, error found in #10 byte of ...|id-json\" }|..., bigger context ...|{ \"invalid-json\" }|..."
"message": "did not recognize object type"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"MozillaChromeEdge"
]
},
"method": "post",
"method": "POST",
"socket": {
"encrypted": true,
"remote_address": "12.53.12.1:8080"
Expand Down
Loading

0 comments on commit 10ef541

Please sign in to comment.