Commit 0a8a804
authored
fix(eventstream): Fix trace item inserts to EAP via Snuba HTTP backend (#103857)
Follow-up to #103566.
The previous logic did not correctly serialize the trace item when
making a POST request to the "/tests/entities/eap_items/insert_bytes"
endpoint. With this updated logic we should see successful EAP inserts
(example below).
Querying via `docker exec -it snuba-clickhouse-1 clickhouse-client
--query "SELECT item_id, project_id, organization_id, trace_id,
item_type, timestamp FROM eap_items_1_local ORDER BY timestamp DESC
LIMIT 5 FORMAT Pretty"`.
Before ingesting new event:
<img width="1061" height="183" alt="image"
src="https://github.com/user-attachments/assets/9d2eca89-8fc9-4ab5-9fb3-ae34fd862ef8"
/>
After ingesting new event:
<img width="1055" height="186" alt="image"
src="https://github.com/user-attachments/assets/18caf67e-4d4b-4232-a2a9-b00225a52396"
/>1 parent 11e4a63 commit 0a8a804
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
497 | 499 | | |
498 | 500 | | |
499 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
500 | 507 | | |
501 | 508 | | |
502 | 509 | | |
503 | | - | |
| 510 | + | |
| 511 | + | |
504 | 512 | | |
505 | 513 | | |
506 | 514 | | |
| |||
0 commit comments