diff --git a/multi/multi__customizations.html b/multi/multi__customizations.html index 6ba45bb2b..2555d14b8 100644 --- a/multi/multi__customizations.html +++ b/multi/multi__customizations.html @@ -42,6 +42,7 @@ You can customize the tags or modify the response headers by registering your ow FilterChain chain) throws IOException, ServletException { Span currentSpan = this.tracer.currentSpan(); if (currentSpan == null) { + chain.doFilter(request, response); return; } // for readability we're returning trace id in a hex form diff --git a/single/spring-cloud-sleuth.html b/single/spring-cloud-sleuth.html index cc8423089..2c4ceaf3d 100644 --- a/single/spring-cloud-sleuth.html +++ b/single/spring-cloud-sleuth.html @@ -638,6 +638,7 @@ You can customize the tags or modify the response headers by registering your ow FilterChain chain) throws IOException, ServletException { Span currentSpan = this.tracer.currentSpan(); if (currentSpan == null) { + chain.doFilter(request, response); return; } // for readability we're returning trace id in a hex form diff --git a/spring-cloud-sleuth.xml b/spring-cloud-sleuth.xml index 5a7e8ec6b..bacc945b3 100644 --- a/spring-cloud-sleuth.xml +++ b/spring-cloud-sleuth.xml @@ -1434,6 +1434,7 @@ class MyFilter extends GenericFilterBean { FilterChain chain) throws IOException, ServletException { Span currentSpan = this.tracer.currentSpan(); if (currentSpan == null) { + chain.doFilter(request, response); return; } // for readability we're returning trace id in a hex form