childOf method
Returns a new ChildOf reference.
A Span may be the “ChildOf” a parent Span. In a “ChildOf” reference, the parent Span depends on the child Span in some capacity. All of the following would constitute ChildOf relationships: A Span representing the server side of an RPC may be the ChildOf a Span representing the client side of that RPC. A Span representing a SQL insert may be the ChildOf a Span representing an ORM save method. Many Spans doing concurrent (perhaps distributed) work may all individually be the ChildOf a single parent Span that merges the results for all children that return within a deadline.
Implementation
/// A Span representing the server side of an RPC may be the ChildOf a Span
/// representing the client side of that RPC.
/// A Span representing a SQL insert may be the ChildOf a Span representing an
/// ORM save method.
/// Many Spans doing concurrent (perhaps distributed) work may all
/// individually be the ChildOf a single parent Span that merges the results
/// for all children that return within a deadline.
Reference childOf(SpanContext spanContext) {
return Reference.childOf(spanContext);
}