package armeria;

import brave.Tracing;
import com.linecorp.armeria.client.HttpClient;
import com.linecorp.armeria.client.HttpClientBuilder;
import com.linecorp.armeria.client.tracing.HttpTracingClient;
import com.linecorp.armeria.common.HttpRequest;
import com.linecorp.armeria.common.HttpResponse;
import com.linecorp.armeria.server.Server;
import com.linecorp.armeria.server.ServerBuilder;
import com.linecorp.armeria.server.logging.LoggingService;
import com.linecorp.armeria.server.tracing.HttpTracingService;

public class Frontend {

  public static void main(String[] args) {
    Tracing tracing = TracingFactory.create("frontend");

    HttpClient backendClient =
        new HttpClientBuilder("http://localhost:9000/")
            .decorator(
                HttpRequest.class, HttpResponse.class, HttpTracingClient.newDecorator(tracing, "backend"))
            .build();

    Server server =
        new ServerBuilder()
            .http(8081)
            .service("/", (ctx, res) -> backendClient.get("/api"))
            .decorator(HttpTracingService.newDecorator(tracing))
            .decorator(LoggingService.newDecorator())
            .build();

    server.start().join();
  }
}

@@ -200,105 +200,8 @@
 nt;%0A
-import com.linecorp.armeria.common.HttpRequest;%0Aimport com.linecorp.armeria.common.HttpResponse;%0A
 impo
@@ -652,64 +652,8 @@
 tor(
-%0A                HttpRequest.class, HttpResponse.class, 
 Http

Use the shorter decorator() method