node_modules/opentracing/src/functions.js
/**
 * Return a new REFERENCE_CHILD_OF reference.
 *
 * @param {SpanContext} spanContext - the parent SpanContext instance to
 *        reference.
 * @return a REFERENCE_CHILD_OF reference pointing to `spanContext`
 */
Return a new REFERENCE_CHILD_OF reference.
@param {SpanContext} spanContext - the parent SpanContext instance to
reference.
@return a REFERENCE_CHILD_OF reference pointing to `spanContext`
Return a new REFERENCE_CHILD_OF reference . @param { SpanContext } spanContext - the parent SpanContext instance to reference . @return a REFERENCE_CHILD_OF reference pointing to ` spanContext `
function childOf(spanContext) {
    if (spanContext instanceof Span) {
        spanContext = spanContext.context();
    }
    return new Reference(Constants.REFERENCE_CHILD_OF, spanContext);
}
function childOf ( spanContext ) { if ( spanContext instanceof Span ) { spanContext = spanContext . context ( ) ; } return new Reference ( Constants . REFERENCE_CHILD_OF , spanContext ) ; }
Return a new REFERENCE_CHILD_OF reference.
Return a new REFERENCE_CHILD_OF reference .
// Allow the user to pass a Span instead of a SpanContext