public String httpCall()

in sample-apps/springboot/src/main/java/com/amazon/sampleapp/DemoController.java [42:54]


  public String httpCall() {
    if (shouldSampleAppLog) {
      logger.info("Executing outgoing-http-call");
    }

    try (Response response =
        httpClient.newCall(new Request.Builder().url("https://aws.amazon.com").build()).execute()) {
    } catch (IOException e) {
      throw new UncheckedIOException("Could not fetch endpoint", e);
    }

    return getXrayTraceId();
  }