W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
通過TracingFilter
,所有采樣的傳入請求都將導(dǎo)致創(chuàng)建Span。Span的名稱為http:
+請求發(fā)送到的路徑。例如,如果請求已發(fā)送到/this/that
,則名稱將為http:/this/that
。您可以通過設(shè)置spring.sleuth.web.skipPattern
屬性來配置要跳過的URI。如果類路徑上有ManagementServerProperties
,則其值contextPath
將附加到提供的跳過模式中。如果要重用Sleuth的默認跳過模式并僅添加自己的模式,請使用spring.sleuth.web.additionalSkipPattern
傳遞這些模式。
默認情況下,所有spring boot執(zhí)行器端點都會自動添加到跳過模式中。如果要禁用此行為,請將spring.sleuth.web.ignore-auto-configured-skip-patterns
設(shè)置為true
。
要更改跟蹤過濾器注冊的順序,請設(shè)置spring.sleuth.web.filter-order
屬性。
要禁用記錄未捕獲異常的過濾器,可以禁用spring.sleuth.web.exception-throwing-filter-enabled
屬性。
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: