Class TracingWebFilter

  • All Implemented Interfaces:
    Serializable, javax.servlet.Filter, javax.servlet.FilterConfig

    public class TracingWebFilter
    extends javax.servlet.http.HttpFilter
    Add some tags to span created by OcHttpServletFilter
    See Also:
    Serialized Form
    • Constructor Detail

      • TracingWebFilter

        public TracingWebFilter()
    • Method Detail

      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
        Specified by:
        init in interface javax.servlet.Filter
        Overrides:
        init in class javax.servlet.GenericFilter
      • doFilter

        protected void doFilter​(javax.servlet.http.HttpServletRequest req,
                                javax.servlet.http.HttpServletResponse res,
                                javax.servlet.FilterChain chain)
                         throws IOException,
                                javax.servlet.ServletException
        Overrides:
        doFilter in class javax.servlet.http.HttpFilter
        Throws:
        IOException
        javax.servlet.ServletException
      • addTags

        protected void addTags​(io.opencensus.trace.Span span,
                               javax.servlet.http.HttpServletRequest httpRequest)
      • addTracingCorrelation

        protected void addTracingCorrelation​(io.opencensus.trace.Span span)
      • removeTracingCorrelation

        protected void removeTracingCorrelation()
      • addDatadogTracingCorrelation

        protected void addDatadogTracingCorrelation()
      • removeDatadogTracingCorrelation

        protected void removeDatadogTracingCorrelation()