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
AWebFilterthat creates / continues / closes and detaches spans for a reactive web application.- Since:
- 2.0.0
- Author:
- Marcin Grzejszczak
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringTRACE_REQUEST_ATTR
-
Constructor Summary
Constructors Constructor Description TraceWebFilter(Tracer tracer, HttpServerHandler handler)Deprecated.TraceWebFilter(Tracer tracer, HttpServerHandler handler, CurrentTraceContext currentTraceContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.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 Detail
-
TRACE_REQUEST_ATTR
protected static final String TRACE_REQUEST_ATTR
-
-
Constructor Detail
-
TraceWebFilter
@Deprecated public TraceWebFilter(Tracer tracer, HttpServerHandler handler)
Deprecated.
-
TraceWebFilter
public TraceWebFilter(Tracer tracer, HttpServerHandler handler, CurrentTraceContext currentTraceContext)
-
-
Method Detail
-
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
-
-