src/oputil.c
// TODO: move to the other create encode span implementation
move to the other create encode span implementation
move to the other create encode span implementation
lcbtrace_SPAN *create_encode_span(pycbc_Tracer_t *tracer, struct pycbc_common_vars *cv)
{
    lcbtrace_SPAN *encode_span = NULL;
    if (tracer && cv->mres->outer_span) {
        lcbtrace_REF ref;
        ref.type = LCBTRACE_REF_CHILD_OF;
        ref.span = cv->mres->outer_span;
        encode_span = lcbtrace_span_start(tracer->tracer, "request_encoding", LCBTRACE_NOW, &ref);
        lcbtrace_span_set_is_encode(encode_span, 1);
    }
    return encode_span;
}
lcbtrace_SPAN * create_encode_span ( pycbc_Tracer_t * tracer , struct pycbc_common_vars * cv ) { lcbtrace_SPAN * encode_span = NULL ; if ( tracer && cv -> mres -> outer_span ) { lcbtrace_REF ref ; ref . type = LCBTRACE_REF_CHILD_OF ; ref . span = cv -> mres -> outer_span ; encode_span = lcbtrace_span_start ( tracer -> tracer , " " , LCBTRACE_NOW , & ref ) ; lcbtrace_span_set_is_encode ( encode_span , 1 ) ; } return encode_span ; }
TODO: move to the other create encode span implementation
TODO : move to the other create encode span implementation