Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 48f1256

Browse files
chore: revert
1 parent 4970739 commit 48f1256

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

‎src/main/java/spp/demo/command/ViewTraces.java‎

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
import io.micronaut.http.HttpResponse;
44
import io.micronaut.http.annotation.Controller;
55
import io.micronaut.http.annotation.Get;
6-
import io.micronaut.http.client.BlockingHttpClient;
7-
import io.micronaut.http.client.DefaultHttpClientConfiguration;
86
import io.micronaut.http.client.HttpClient;
9-
import io.micronaut.http.client.HttpClientConfiguration;
107

118
import java.net.URL;
129

@@ -24,23 +21,15 @@
2421
@Controller("/command")
2522
public class ViewTraces {
2623

27-
private final HttpClientConfiguration config = new DefaultHttpClientConfiguration();
28-
29-
public ViewTraces() {
30-
config.setExceptionOnErrorStatus(false);
31-
}
32-
3324
/**
3425
* Execute the `View Traces` command with your caret anywhere between lines 31 and 38 to see the traces for
3526
* the endpoint below. Executing this command will open a list of traces for the given endpoint. Clicking on a
3627
* trace will open the trace details.
3728
*/
3829
@Get("/view-traces")
3930
public HttpResponse<Void> entryEndpoint() throws Exception {
40-
try (HttpClient client = HttpClient.create(new URL("http://localhost:8080"), config)) {
41-
try (BlockingHttpClient blocking = client.toBlocking()) {
42-
blocking.retrieve("/command/view-traces/exit");
43-
}
31+
try (HttpClient client = HttpClient.create(new URL("http://localhost:8080"))) {
32+
client.toBlocking().retrieve("/command/view-traces/exit");
4433
}
4534
return HttpResponse.ok();
4635
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /