From f74f381706b4d440c1c110617b9bf3d4a036f138 Mon Sep 17 00:00:00 2001
From: buildmaster To pass the tracing information, you have to wrap the same logic in the Sleuth version of the return someLogic();
}
};HystrixCommand, which is called
-TraceCommand, as shown in the following example:TraceCommand<String> traceCommand = new TraceCommand<String>(tracer, traceKeys, setter) {
+
TraceCommand, as shown in the following example:
TraceCommand<String> traceCommand = new TraceCommand<String>(tracer, setter) {
@Override
public String doRun() throws Exception {
return someLogic();
diff --git a/single/spring-cloud-sleuth.html b/single/spring-cloud-sleuth.html
index 27d5565b6..cc8423089 100644
--- a/single/spring-cloud-sleuth.html
+++ b/single/spring-cloud-sleuth.html
@@ -733,7 +733,7 @@ To disable the custom Hystrix Concurrency Strategy, set the return someLogic();
}
};To pass the tracing information, you have to wrap the same logic in the Sleuth version of the HystrixCommand, which is called
-TraceCommand, as shown in the following example:
TraceCommand<String> traceCommand = new TraceCommand<String>(tracer, traceKeys, setter) { +TraceCommand, as shown in the following example:TraceCommand<String> traceCommand = new TraceCommand<String>(tracer, setter) { @Override public String doRun() throws Exception { return someLogic(); diff --git a/spring-cloud-sleuth.xml b/spring-cloud-sleuth.xml index 499891325..98200319d 100644 --- a/spring-cloud-sleuth.xml +++ b/spring-cloud-sleuth.xml @@ -1602,7 +1602,7 @@ To disable the custom Hystrix Concurrency Strategy, set thespring.sleu }; To pass the tracing information, you have to wrap the same logic in the Sleuth version of the -HystrixCommand , which is calledTraceCommand , as shown in the following example:TraceCommand<String> traceCommand = new TraceCommand<String>(tracer, traceKeys, setter) { + TraceCommand<String> traceCommand = new TraceCommand<String>(tracer, setter) { @Override public String doRun() throws Exception { return someLogic();