File tree Expand file tree Collapse file tree 2 files changed +5
-17
lines changed
etw/etw-testapp/src/main/java/com/microsoft/applicationinsights/etw_testapp Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Original file line number Diff line number Diff line change 11package com .microsoft .applicationinsights .etw_testapp ;
22
3+ import com .microsoft .applicationinsights .agent .internal .diagnostics .etw .DiagnosticsLoggerProxy ;
4+ import java .util .concurrent .atomic .AtomicInteger ;
35import org .springframework .http .ResponseEntity ;
46import org .springframework .web .bind .annotation .GetMapping ;
57import org .springframework .web .bind .annotation .PathVariable ;
68import org .springframework .web .bind .annotation .RequestParam ;
79import org .springframework .web .bind .annotation .RestController ;
810
9- import java .util .concurrent .atomic .AtomicInteger ;
10-
11- import com .microsoft .applicationinsights .agent .internal .diagnostics .etw .DiagnosticsLoggerProxy ;
12-
1311@ RestController
1412public class EtwTestController {
1513 private static final DiagnosticsLoggerProxy DIAGNOSTICS_LOGGER = new DiagnosticsLoggerProxy ();
@@ -51,7 +49,6 @@ public ResponseEntity<String> logPage(
5149 default :
5250 return ResponseEntity .notFound ().build ();
5351 }
54- return ResponseEntity .ok (
55- level .toUpperCase () + " " + n + (t == null ? "" : "<br/>\n " + t .toString ()));
52+ return ResponseEntity .ok ();
5653 }
5754}
Original file line number Diff line number Diff line change 11package com .microsoft .applicationinsights .etw_testapp ;
22
3+ import com .microsoft .applicationinsights .agent .internal .diagnostics .etw .DiagnosticsLoggerProxy ;
34import java .math .BigInteger ;
45import java .text .SimpleDateFormat ;
56import java .time .Duration ;
1112import java .util .concurrent .atomic .AtomicLong ;
1213import java .util .concurrent .atomic .AtomicReference ;
1314import java .util .function .BinaryOperator ;
14-
15- import com .microsoft .applicationinsights .agent .internal .diagnostics .etw .DiagnosticsLoggerProxy ;
16-
1715import org .apache .commons .lang3 .RandomUtils ;
1816import org .apache .commons .lang3 .exception .ExceptionUtils ;
1917import org .springframework .beans .factory .annotation .Autowired ;
@@ -246,14 +244,7 @@ public ResponseEntity<String> startTest(
246244 period = Duration .parse ("PT" + periodStr );
247245 }
248246 } catch (NumberFormatException | DateTimeParseException e ) {
249- return ResponseEntity .badRequest ()
250- .body (
251- "<p>Period parameter 'T' could not parse \" "
252- + periodStr
253- + "\" </p>"
254- + "<p><pre>"
255- + ExceptionUtils .getStackTrace (e )
256- + "</p>" );
247+ return ResponseEntity .badRequest ().body ("Period parameter could not be parsed" );
257248 }
258249
259250 final long startTime ;
You can’t perform that action at this time.
0 commit comments