Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #2004 Span is not terminated properly in Spring Cloud Gateway #2021

Closed
wants to merge 4 commits into from

Conversation

HashJang
Copy link
Contributor

@HashJang HashJang commented Sep 6, 2021

As stated in title, for request body, it should also be traced

@marcingrzejszczak
Copy link
Contributor

Can you please create a test for that?

@HashJang
Copy link
Contributor Author

HashJang commented Sep 7, 2021

Noted. Will be done

@marcingrzejszczak
Copy link
Contributor

The build is broken due to

 Error:  /home/runner/work/spring-cloud-sleuth/spring-cloud-sleuth/spring-cloud-sleuth-instrumentation/src/main/java/org/springframework/cloud/sleuth/instrument/web/TraceWebFilter.java:47:1: Wrong order for 'org.springframework.core.Ordered' import. [ImportOrder]

Can you put the imports in order and write the missing tests please?

@@ -96,12 +100,18 @@ public TraceWebFilter(Tracer tracer, HttpServerHandler handler, CurrentTraceCont
@Override
public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) {
String uri = exchange.getRequest().getPath().pathWithinApplication().value();
Mono<Void> source = chain.filter(exchange);
ServerWebExchange finalExchange = exchange.mutate().request(new ServerHttpRequestDecorator(exchange.getRequest()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what exactly you're trying to achieve here?

@marcingrzejszczak
Copy link
Contributor

Closing due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants