pub fn finish(mut self) {
        self.span.finish();
        let mut inner = self.transaction.lock().unwrap();
        if let Some(transaction) = inner.transaction.as_mut() {
            if transaction.spans.len() <= MAX_SPANS {
                transaction.spans.push(self.span);
            }
        }
    }
/// Finishes the Span.
///
/// This will record the end timestamp and add the span to the transaction
/// in which it was started.
Finishes the Span.
This will record the end timestamp and add the span to the transaction
in which it was started.
Finishes the Span . This will record the end timestamp and add the span to the transaction in which it was started .
pub fn finish(mut self) {
        self.span.finish();
        let mut inner = self.transaction.lock().unwrap();
        if let Some(transaction) = inner.transaction.as_mut() {
            if transaction.spans.len() <= MAX_SPANS {
                transaction.spans.push(self.span);
            }
        }
    }
pub fn finish ( mut self ) { self . span . finish ( ) ; let mut inner = self . transaction . lock ( ) . unwrap ( ) ; if let Some ( transaction ) = inner . transaction . as_mut ( ) { if transaction . spans . len ( ) <= MAX_SPANS { transaction . spans . push ( self . span ) ; } } }
Finishes the Span.
Finishes the Span .
mut self
mut self