Push a span onto the graph. Returns the `VertexId` assigned to this span. # Arguments `span` - The span to add # Returns The ID that can be used to reference this span.
(&mut self, vertex: AliveVertex)
| 182 | /// |
| 183 | /// The ID that can be used to reference this span. |
| 184 | pub fn push_vertex(&mut self, vertex: AliveVertex) -> VertexId { |
| 185 | let id = VertexId::new(self.vertices.len()); |
| 186 | self.total_bytes += vertex.len(); |
| 187 | self.vertices.push(vertex); |
| 188 | id |
| 189 | } |
| 190 | |
| 191 | /// Push a child entry to the children array. |
| 192 | /// |