W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
如果要將標(biāo)記和注釋添加到現(xiàn)有范圍,則可以使用@ContinueSpan
注釋,如以下示例所示:
// method declaration @ContinueSpan(log = "testMethod11") void testMethod11(@SpanTag("testTag11") String param); // method execution this.testBean.testMethod11("test"); this.testBean.testMethod13();
(請(qǐng)注意,與@NewSpan
注釋相反,您還可以使用log
參數(shù)添加日志。)
這樣,跨度將繼續(xù),并且:
testMethod11.before
和testMethod11.after
的日志條目。testMethod11.afterFailure
的日志條目。testTag11
,值為test
。Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: