code: func NewTx(name string) *tx {
  	return &tx{
  		Tracer:   &NRTxTracer{},
  		Reporter: &NRTxReporter{},
  		name:     name,
  		txnType:  WebTransaction,
  		ss:       NewSegmentStack(),
  		mtx:      &sync.Mutex{},
  	}
  }
docs: // NewTx returns a new transaction.