File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ Routing defaultRouting = Routing.builder()
432432 .build();
433433
434434WebServer server = WebServer.builder(defaultRouting)
435- .config(ServerConfiguration .builder()
435+ .config(WebServer .builder()
436436 .port(8080) // <6>
437437 .addSocket("health", SocketConfiguration.builder() // <7>
438438 .port(8081)
Original file line number Diff line number Diff line change @@ -85,11 +85,11 @@ Helidon provides such an implementation for:
8585[source,java]
8686.Configuring OpenTracing `Tracer`
8787----
88- ServerConfiguration .builder()
89- .tracer(TracerBuilder.create("my-application") // <1>
90- .collectorUri(URI.create("http://10.0.0.18:9411")) // <2>
91- .build())
92- .build()
88+ WebServer .builder()
89+ .tracer(TracerBuilder.create("my-application") // <1>
90+ .collectorUri(URI.create("http://10.0.0.18:9411")) // <2>
91+ .build())
92+ .build()
9393----
9494<1> The name of the application (service) to associate with the tracing events
9595<2> The endpoint for tracing events, specific to the tracer used, usually loaded from Config
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ pom.xml:
5959
6060code using config :
6161` ` ` java
62- return ServerConfiguration .builder()
62+ return WebServer .builder()
6363 .config(config.get("webserver"))
6464 .tracer(TracerBuilder.create(config.get("tracing"))
6565 .buildAndRegister())
You can’t perform that action at this time.
0 commit comments