MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / push_child

Method push_child

atomic-core/src/output/alive/graph.rs:200–202  ·  view source on GitHub ↗

Push a child entry to the children array. This should be called while building a span's child list. Don't forget to push the sentinel `(None, VertexId::DUMMY)` at the end. # Arguments `edge` - The edge leading to the child (or None for sentinel) `child` - The child span ID

(&mut self, edge: Option<SerializedGraphEdge>, child: VertexId)

Source from the content-addressed store, hash-verified

198 /// * `edge` - The edge leading to the child (or None for sentinel)
199 /// * `child` - The child span ID
200 pub fn push_child(&mut self, edge: Option<SerializedGraphEdge>, child: VertexId) {
201 self.children.push((edge, child));
202 }
203
204 /// Push a child and increment the last span's child count.
205 ///

Callers 2

test_graph_push_childFunction · 0.80
retrieve_graphFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by 1

test_graph_push_childFunction · 0.64