java-spring-cloud icon indicating copy to clipboard operation
java-spring-cloud copied to clipboard

Could not report to Jaeger when using spring cloud apigw

Open haboy52581 opened this issue 4 years ago • 0 comments

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();

haboy52581 avatar Feb 02 '21 23:02 haboy52581