public ITransaction StartTransaction(IHub hub, ITransactionContext context) { var transaction = new TransactionTracer(hub, context) { IsSampled = true }; var(currentScope, _) = ScopeManager.GetCurrent(); currentScope.Transaction = transaction; return(transaction); }
public ISpan GetSpan() { var(currentScope, _) = ScopeManager.GetCurrent(); return(currentScope.GetSpan()); }