pub fn finish(self) {
        let mut inner = self.inner.lock().unwrap();
        if let Some(mut transaction) = inner.transaction.take() {
            if let Some(client) = inner.client.take() {
                transaction.finish();
                transaction
                    .contexts
                    .insert("trace".into(), inner.context.clone().into());

                // TODO: apply the scope to the transaction, whatever that means

                let mut envelope = protocol::Envelope::new();
                envelope.add_item(transaction);

                client.send_envelope(envelope)
            }
        }
    }
/// Finishes the Transaction.
///
/// This records the end timestamp and sends the transaction together with
/// all finished child spans to Sentry.
Finishes the Transaction.
This records the end timestamp and sends the transaction together with
all finished child spans to Sentry.
Finishes the Transaction . This records the end timestamp and sends the transaction together with all finished child spans to Sentry .
pub fn finish(self) {
        let mut inner = self.inner.lock().unwrap();
        if let Some(mut transaction) = inner.transaction.take() {
            if let Some(client) = inner.client.take() {
                transaction.finish();
                transaction
                    .contexts
                    .insert("trace".into(), inner.context.clone().into());
                // TODO: apply the scope to the transaction, whatever that means
                let mut envelope = protocol::Envelope::new();
                envelope.add_item(transaction);
                client.send_envelope(envelope)
            }
        }
    }
pub fn finish ( self ) { let mut inner = self . inner . lock ( ) . unwrap ( ) ; if let Some ( mut transaction ) = inner . transaction . take ( ) { if let Some ( client ) = inner . client . take ( ) { transaction . finish ( ) ; transaction . contexts . insert ( " " . into ( ) , inner . context . clone ( ) . into ( ) ) ; // TODO: apply the scope to the transaction, whatever that means let mut envelope = protocol :: Envelope :: new ( ) ; envelope . add_item ( transaction ) ; client . send_envelope ( envelope ) } } }
Finishes the Transaction.
Finishes the Transaction .
self
self