java-spring-cloud
java-spring-cloud copied to clipboard
Could not report to Jaeger when using spring cloud apigw
java version: 11 spring cloud version opentracing-spring-web-starter:4.1.0 spring-cloud-dependencies:Greenwich.SR2 here is sample code snippet:
here is the example:
.route(r -> r
.path("/*/path1", "/*/path2", "/project/*/path2")
.and().method(HttpMethod.GET)
.filters(f -> f.modifyResponseBody(path2WebJson.class, path1WebJson.class,
(exchange, path2WebJson) -> {
path1WebJson path1WebJson = new path1WebJson(path2WebJson.getpath2());
return Mono.just(path1WebJson);
}))
.uri(Url))
.route(r -> r
.path("/*/path1", "/*/path1/*",
"/project/*/path2", "/project/*/path2/*")
.uri(Url))
.build();