@@ -69,34 +69,34 @@ public String flow() throws ExecutionException, InterruptedException {
6969 long sleepTime = 5 + RANDOM .nextInt (5 );
7070 silentSleep (sleepTime );
7171 String result = restTemplate .getForObject ("http://sc-C/flow" , String .class );
72- return "B[tag= " + serviceTag + "] [" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " sleepTime:" + sleepTime + " -> " + result ;
72+ return "B" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " sleepTime:" + sleepTime + " -> " + result ;
7373 }
7474
7575 @ GetMapping ("/params/{hot}" )
7676 public String params (@ PathVariable ("hot" ) String hot ) throws ExecutionException , InterruptedException {
7777 long sleepTime = 5 + RANDOM .nextInt (5 );
7878 silentSleep (sleepTime );
7979 String result = restTemplate .getForObject ("http://sc-C/params/" + hot , String .class );
80- return "B[tag= " + serviceTag + "] [" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " sleepTime:" + sleepTime + " params:" + hot + " -> " + result ;
80+ return "B" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " sleepTime:" + sleepTime + " params:" + hot + " -> " + result ;
8181 }
8282
8383 @ GetMapping ("/isolate" )
8484 public String isolate () throws ExecutionException , InterruptedException {
8585 long sleepTime = 500 + RANDOM .nextInt (5 );
8686 silentSleep (sleepTime );
8787 String result = restTemplate .getForObject ("http://sc-C/isolate" , String .class );
88- return "B[tag= " + serviceTag + "] [" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " sleepTime:" + sleepTime + " -> " + result ;
88+ return "B" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " sleepTime:" + sleepTime + " -> " + result ;
8989 }
9090
9191 @ GetMapping ("/b" )
9292 public String b () {
93- return "B[tag= " + serviceTag + "] [" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " -> " +
93+ return "B" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " -> " +
9494 restTemplate .getForObject ("http://sc-C/c" , String .class );
9595 }
9696
9797 @ GetMapping ("/bByFeign" )
9898 public String bByFeign (String s ) {
99- return "B[tag= " + serviceTag + "] [" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" ;
99+ return "B" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" ;
100100 }
101101
102102 @ GetMapping ("/circuit-breaker-rt-b" )
@@ -112,7 +112,7 @@ public String circuit_breaker_rt_b() {
112112
113113 String slowMessage = isSlowRequest ? " RT:" + rt : "" ;
114114
115- return "B[tag= " + serviceTag + "] [" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + slowMessage ;
115+ return "B" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + slowMessage ;
116116 }
117117
118118 @ GetMapping ("/circuit-breaker-exception-b" )
@@ -122,12 +122,12 @@ public String circuit_breaker_exception_b() {
122122 if (isExceptionRequest ) {
123123 throw new RuntimeException ("TestCircuitBreakerException" );
124124 }
125- return "B[tag= " + serviceTag + "] [" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" ;
125+ return "B" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" ;
126126 }
127127
128128 @ GetMapping ("/b-zone" )
129129 public String bZone () {
130- return "B[tag= " + serviceTag + "] [" + currentZone + "]" + " -> " +
130+ return "B" + serviceTag + "[" + currentZone + "]" + " -> " +
131131 restTemplate .getForObject ("http://sc-C/c-zone" , String .class );
132132 }
133133
@@ -162,7 +162,7 @@ public String sql(@RequestParam Map<String, String> allRequestParams) {
162162 List <User > list = user .selectAll ();
163163 result = JSON .toJSONString (list );
164164 }
165- return "B[tag= " + serviceTag + "] [" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " result:" + result ;
165+ return "B" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " result:" + result ;
166166 }
167167
168168 @ GetMapping ("/set-traffic-attribute" )
0 commit comments