stackdriver_trace.c
/**
 * Finish the current trace span. Set the new current trace span to this span's
 * parent if there is one.
 */
Finish the current trace span. Set the new current trace span to this span's
parent if there is one.
Finish the current trace span . Set the new current trace span to this span ' s parent if there is one .
static int stackdriver_trace_finish()
{
    stackdriver_trace_span_t *span = STACKDRIVER_TRACE_G(current_span);
    if (!span) {
        return FAILURE;
    }
    span->stop = stackdriver_trace_now();
    STACKDRIVER_TRACE_G(current_span) = span->parent;
    return SUCCESS;
}
static int stackdriver_trace_finish ( ) { stackdriver_trace_span_t * span = STACKDRIVER_TRACE_G ( current_span ) ; if ( ! span ) { return FAILURE ; } span -> stop = stackdriver_trace_now ( ) ; STACKDRIVER_TRACE_G ( current_span ) = span -> parent ; return SUCCESS ; }
Finish the current trace span.
Finish the current trace span .
/* set current time for now */