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 Details

    • TRACE_REQUEST_ATTR

      protected static final String TRACE_REQUEST_ATTR
  • Constructor Details

  • Method Details

    • filter

      public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain)
      Specified by:
      filter in interface org.springframework.web.server.WebFilter
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.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:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException