@@ -69,34 +69,34 @@ public String flow() throws ExecutionException, InterruptedException {
69
69
long sleepTime = 5 + RANDOM .nextInt (5 );
70
70
silentSleep (sleepTime );
71
71
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 ;
73
73
}
74
74
75
75
@ GetMapping ("/params/{hot}" )
76
76
public String params (@ PathVariable ("hot" ) String hot ) throws ExecutionException , InterruptedException {
77
77
long sleepTime = 5 + RANDOM .nextInt (5 );
78
78
silentSleep (sleepTime );
79
79
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 ;
81
81
}
82
82
83
83
@ GetMapping ("/isolate" )
84
84
public String isolate () throws ExecutionException , InterruptedException {
85
85
long sleepTime = 500 + RANDOM .nextInt (5 );
86
86
silentSleep (sleepTime );
87
87
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 ;
89
89
}
90
90
91
91
@ GetMapping ("/b" )
92
92
public String b () {
93
- return "B[tag= " + serviceTag + "] [" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " -> " +
93
+ return "B" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " -> " +
94
94
restTemplate .getForObject ("http://sc-C/c" , String .class );
95
95
}
96
96
97
97
@ GetMapping ("/bByFeign" )
98
98
public String bByFeign (String s ) {
99
- return "B[tag= " + serviceTag + "] [" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" ;
99
+ return "B" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" ;
100
100
}
101
101
102
102
@ GetMapping ("/circuit-breaker-rt-b" )
@@ -112,7 +112,7 @@ public String circuit_breaker_rt_b() {
112
112
113
113
String slowMessage = isSlowRequest ? " RT:" + rt : "" ;
114
114
115
- return "B[tag= " + serviceTag + "] [" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + slowMessage ;
115
+ return "B" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + slowMessage ;
116
116
}
117
117
118
118
@ GetMapping ("/circuit-breaker-exception-b" )
@@ -122,12 +122,12 @@ public String circuit_breaker_exception_b() {
122
122
if (isExceptionRequest ) {
123
123
throw new RuntimeException ("TestCircuitBreakerException" );
124
124
}
125
- return "B[tag= " + serviceTag + "] [" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" ;
125
+ return "B" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" ;
126
126
}
127
127
128
128
@ GetMapping ("/b-zone" )
129
129
public String bZone () {
130
- return "B[tag= " + serviceTag + "] [" + currentZone + "]" + " -> " +
130
+ return "B" + serviceTag + "[" + currentZone + "]" + " -> " +
131
131
restTemplate .getForObject ("http://sc-C/c-zone" , String .class );
132
132
}
133
133
@@ -162,7 +162,7 @@ public String sql(@RequestParam Map<String, String> allRequestParams) {
162
162
List <User > list = user .selectAll ();
163
163
result = JSON .toJSONString (list );
164
164
}
165
- return "B[tag= " + serviceTag + "] [" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " result:" + result ;
165
+ return "B" + serviceTag + "[" + inetUtils .findFirstNonLoopbackAddress ().getHostAddress () + "]" + " result:" + result ;
166
166
}
167
167
168
168
@ GetMapping ("/set-traffic-attribute" )
0 commit comments