| OLD | NEW |
| (Empty) | |
| 1 syntax = "proto2"; |
| 2 option optimize_for = LITE_RUNTIME; |
| 3 |
| 4 package tracing; |
| 5 |
| 6 message EventsChunk { |
| 7 // Chunks produced by the same trace writer have the same stream_id. |
| 8 // This is to look up the next chunk for a given thread. |
| 9 required uint32 stream_id = 1; |
| 10 |
| 11 // A monotonic counter within stream_id. To order chunks within the stream. |
| 12 required uint32 seq_id_in_stream = 2; |
| 13 |
| 14 // Each event is a byte sequence that encapsulates the bytes for a single |
| 15 // Event (see event.proto) or an incomplete portion of it. |
| 16 // Why this isn't just a "repeated Events" field? An Event can spawn across |
| 17 // several chunks. In this case the reader has to first glue the byte |
| 18 // sequences together and then process the event. |
| 19 repeated bytes events = 3; |
| 20 optional bool first_event_continues_from_prev_chunk = 4; |
| 21 optional bool last_event_continues_on_next_chunk = 5; |
| 22 |
| 23 required uint32 num_events = 6; // TODO here for streaming: fixed? |
| 24 } |
| OLD | NEW |