Skip to content

Commit

Permalink
TODO
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Cole <[email protected]>
  • Loading branch information
Adrian Cole committed Apr 14, 2024
1 parent 3e91928 commit 25396a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webflux6-micrometer/src/main/java/brave/example/Backend.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@

@EnableAutoConfiguration
@RestController
@Import(CustomObservationConfiguration.class)
@Import(value = {
CustomObservationConfiguration.class,
ZipkinDiscoveryConfiguration.class
})
public class Backend {

@GetMapping("/api")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import zipkin2.reporter.HttpEndpointSupplier;
import zipkin2.reporter.HttpEndpointSuppliers;

// TODO: make this conditional on configuration, to prevent crashes looking up Eureka.
@Configuration(proxyBeanMethods = false)
public class ZipkinDiscoveryConfiguration {
@Bean HttpEndpointSupplier.Factory loadbalancerEndpoints(LoadBalancerClient loadBalancerClient) {
Expand Down

0 comments on commit 25396a7

Please sign in to comment.