@@ -66,24 +66,24 @@ public static void triggerEndpoints() {
66
66
// callEndpoint("/insight/slow-function");
67
67
// callEndpoint("/insight/fast-function");
68
68
69
- //view activity command
70
- callEndpoint ("/command/view-activity" );
71
-
72
- //view traces command
73
- callEndpoint ("/command/view-traces" );
74
-
75
- //failing endpoint indicator
76
- callEndpoint ("/indicator/fail-100-percent" );
77
- callEndpoint ("/indicator/fail-50-percent" );
78
-
79
- //slow endpoint indicator
80
- callEndpoint ("/indicator/slow-2000ms" );
81
- callEndpoint ("/indicator/slow-1000ms" );
82
-
83
- //high load endpoint indicator
84
- for (int i = 0 ; i < 6 ; i ++) {
85
- callEndpoint ("/indicator/high-load-six-per-second" );
86
- }
69
+ // //view activity command
70
+ // callEndpoint("/command/view-activity");
71
+ //
72
+ // //view traces command
73
+ // callEndpoint("/command/view-traces");
74
+ //
75
+ // //failing endpoint indicator
76
+ // callEndpoint("/indicator/fail-100-percent");
77
+ // callEndpoint("/indicator/fail-50-percent");
78
+ //
79
+ // //slow endpoint indicator
80
+ // callEndpoint("/indicator/slow-2000ms");
81
+ // callEndpoint("/indicator/slow-1000ms");
82
+ //
83
+ // //high load endpoint indicator
84
+ // for (int i = 0; i < 6; i++) {
85
+ // callEndpoint("/indicator/high-load-six-per-second");
86
+ // }
87
87
for (int i = 0 ; i < 3 ; i ++) {
88
88
callEndpoint ("/indicator/high-load-three-per-second" );
89
89
}
@@ -104,7 +104,8 @@ private static void callEndpoint(String endpoint) {
104
104
connection = (HttpURLConnection ) url .openConnection ();
105
105
connection .setConnectTimeout (10_000 );
106
106
connection .setReadTimeout (10_000 );
107
- connection .getResponseCode ();
107
+ int responseCode = connection .getResponseCode ();
108
+ System .out .println ("Response code: " + responseCode );
108
109
} catch (Exception ignore ) {
109
110
} finally {
110
111
if (connection != null ) {
0 commit comments