From 5b2cfaac0ee70682c8d37ccba2339c6a7e11066d Mon Sep 17 00:00:00 2001
From: buildmaster http: + the path to which
For example, if the request was sent to /this/that then the name will be http:/this/that.
You can configure which URIs you would like to skip by setting the spring.sleuth.web.skipPattern property.
If you have ManagementServerProperties on classpath, its value of contextPath gets appended to the provided skip pattern.
-If you want to reuse the Sleuth’s default skip patterns and just append your own, pass those patterns by using the spring.sleuth.web.additionalSkipPattern.
Since we want the span names to be precise, we use a TraceHandlerInterceptor that either wraps an existing HandlerInterceptor or is added directly to the list of existing HandlerInterceptors.
+If you want to reuse the Sleuth’s default skip patterns and just append your own, pass those patterns by using the spring.sleuth.web.additionalSkipPattern.
To change the order of tracing filter registration, please set the
+spring.sleuth.web.filter-order property.
To disable the filter that logs uncaught exceptions you can disable the
+spring.sleuth.web.exception-throwing-filter-enabled property.
Since we want the span names to be precise, we use a TraceHandlerInterceptor that either wraps an existing HandlerInterceptor or is added directly to the list of existing HandlerInterceptors.
The TraceHandlerInterceptor adds a special request attribute to the given HttpServletRequest.
If the the TracingFilter does not see this attribute, it creates a "fallback" span, which is an additional span created on the server side so that the trace is presented properly in the UI.
If that happens, there is probably missing instrumentation.
@@ -65,7 +67,8 @@ That Span’s name is http: + the path to which
For example, if the request was sent to /this/that, the name is http:/this/that.
You can configure which URIs you would like to skip by using the spring.sleuth.web.skipPattern property.
If you have ManagementServerProperties on the classpath, its value of contextPath gets appended to the provided skip pattern.
-If you want to reuse Sleuth’s default skip patterns and append your own, pass those patterns by using the spring.sleuth.web.additionalSkipPattern.
Via the integration with Brave, Spring Cloud Sleuth supports Dubbo.
+If you want to reuse Sleuth’s default skip patterns and append your own, pass those patterns by using the spring.sleuth.web.additionalSkipPattern.
To change the order of tracing filter registration, please set the
+spring.sleuth.web.filter-order property.
Via the integration with Brave, Spring Cloud Sleuth supports Dubbo.
It’s enough to add the brave-instrumentation-dubbo-rpc dependency:
<dependency> <groupId>io.zipkin.brave</groupId> <artifactId>brave-instrumentation-dubbo-rpc</artifactId> diff --git a/single/spring-cloud-sleuth.html b/single/spring-cloud-sleuth.html index 2d9361049..b09bab54f 100644 --- a/single/spring-cloud-sleuth.html +++ b/single/spring-cloud-sleuth.html @@ -787,7 +787,9 @@ That Span’s name ishttp:+ the path to which For example, if the request was sent to/this/thatthen the name will behttp:/this/that. You can configure which URIs you would like to skip by setting thespring.sleuth.web.skipPatternproperty. If you haveManagementServerPropertieson classpath, its value ofcontextPathgets appended to the provided skip pattern. -If you want to reuse the Sleuth’s default skip patterns and just append your own, pass those patterns by using thespring.sleuth.web.additionalSkipPattern.
Since we want the span names to be precise, we use a TraceHandlerInterceptor that either wraps an existing HandlerInterceptor or is added directly to the list of existing HandlerInterceptors.
+If you want to reuse the Sleuth’s default skip patterns and just append your own, pass those patterns by using the spring.sleuth.web.additionalSkipPattern.
To change the order of tracing filter registration, please set the
+spring.sleuth.web.filter-order property.
To disable the filter that logs uncaught exceptions you can disable the
+spring.sleuth.web.exception-throwing-filter-enabled property.
Since we want the span names to be precise, we use a TraceHandlerInterceptor that either wraps an existing HandlerInterceptor or is added directly to the list of existing HandlerInterceptors.
The TraceHandlerInterceptor adds a special request attribute to the given HttpServletRequest.
If the the TracingFilter does not see this attribute, it creates a "fallback" span, which is an additional span created on the server side so that the trace is presented properly in the UI.
If that happens, there is probably missing instrumentation.
@@ -796,7 +798,8 @@ That Span’s name is http: + the path to which
For example, if the request was sent to /this/that, the name is http:/this/that.
You can configure which URIs you would like to skip by using the spring.sleuth.web.skipPattern property.
If you have ManagementServerProperties on the classpath, its value of contextPath gets appended to the provided skip pattern.
-If you want to reuse Sleuth’s default skip patterns and append your own, pass those patterns by using the spring.sleuth.web.additionalSkipPattern.
Via the integration with Brave, Spring Cloud Sleuth supports Dubbo.
+If you want to reuse Sleuth’s default skip patterns and append your own, pass those patterns by using the spring.sleuth.web.additionalSkipPattern.
To change the order of tracing filter registration, please set the
+spring.sleuth.web.filter-order property.
Via the integration with Brave, Spring Cloud Sleuth supports Dubbo.
It’s enough to add the brave-instrumentation-dubbo-rpc dependency:
<dependency> <groupId>io.zipkin.brave</groupId> <artifactId>brave-instrumentation-dubbo-rpc</artifactId> diff --git a/spring-cloud-sleuth.xml b/spring-cloud-sleuth.xml index fe508867f..18a6d0d13 100644 --- a/spring-cloud-sleuth.xml +++ b/spring-cloud-sleuth.xml @@ -1689,6 +1689,10 @@ For example, if the request was sent to/this/that then the n You can configure which URIs you would like to skip by setting thespring.sleuth.web.skipPattern property. If you haveManagementServerProperties on classpath, its value ofcontextPath gets appended to the provided skip pattern. If you want to reuse the Sleuth’s default skip patterns and just append your own, pass those patterns by using thespring.sleuth.web.additionalSkipPattern . +To change the order of tracing filter registration, please set the + +spring.sleuth.web.filter-order property.To disable the filter that logs uncaught exceptions you can disable the + spring.sleuth.web.exception-throwing-filter-enabled property.HandlerInterceptor @@ -1710,6 +1714,8 @@ For example, if the request was sent to/this/that , the name You can configure which URIs you would like to skip by using thespring.sleuth.web.skipPattern property. If you haveManagementServerProperties on the classpath, its value ofcontextPath gets appended to the provided skip pattern. If you want to reuse Sleuth’s default skip patterns and append your own, pass those patterns by using thespring.sleuth.web.additionalSkipPattern . +To change the order of tracing filter registration, please set the + spring.sleuth.web.filter-order property.Dubbo RPC support