Class TraceWebFilter
java.lang.Object
org.springframework.cloud.sleuth.instrument.web.TraceWebFilter
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.core.Ordered,org.springframework.web.server.WebFilter
public class TraceWebFilter
extends Object
implements org.springframework.web.server.WebFilter, org.springframework.core.Ordered, org.springframework.context.ApplicationContextAware
A
WebFilter that creates / continues / closes and detaches spans for a reactive
web application.- Since:
- 2.0.0
- Author:
- Marcin Grzejszczak
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionTraceWebFilter(Tracer tracer, HttpServerHandler handler) Deprecated.TraceWebFilter(Tracer tracer, HttpServerHandler handler, CurrentTraceContext currentTraceContext) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain) intgetOrder()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetOrder(int order)
-
Field Details
-
TRACE_REQUEST_ATTR
-
-
Constructor Details
-
TraceWebFilter
Deprecated. -
TraceWebFilter
public TraceWebFilter(Tracer tracer, HttpServerHandler handler, CurrentTraceContext currentTraceContext)
-
-
Method Details
-
filter
public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain) - Specified by:
filterin interfaceorg.springframework.web.server.WebFilter
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order) -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-