Class TracingWebFilter
- java.lang.Object
-
- javax.servlet.GenericFilter
-
- javax.servlet.http.HttpFilter
-
- org.nuxeo.ecm.core.management.jtajca.internal.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
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.servlet.FilterConfig
config
protected static String
DD_SPAN_ID_CONTEXT_KEY
protected static String
DD_TRACE_ID_CONTEXT_KEY
protected static String
SESSION_KEY
protected static String
THREAD_KEY
protected static String
USER_KEY
-
Constructor Summary
Constructors Constructor Description TracingWebFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addDatadogTracingCorrelation()
protected void
addTags(io.opencensus.trace.Span span, javax.servlet.http.HttpServletRequest httpRequest)
protected void
addTracingCorrelation(io.opencensus.trace.Span span)
protected void
doFilter(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, javax.servlet.FilterChain chain)
void
init(javax.servlet.FilterConfig filterConfig)
protected void
removeDatadogTracingCorrelation()
protected void
removeTracingCorrelation()
-
Methods inherited from class javax.servlet.GenericFilter
getFilterConfig, getFilterName, getInitParameter, getInitParameterNames, getServletContext, init
-
-
-
-
Field Detail
-
config
protected javax.servlet.FilterConfig config
-
USER_KEY
protected static final String USER_KEY
- See Also:
- Constant Field Values
-
THREAD_KEY
protected static final String THREAD_KEY
- See Also:
- Constant Field Values
-
SESSION_KEY
protected static final String SESSION_KEY
- See Also:
- Constant Field Values
-
DD_TRACE_ID_CONTEXT_KEY
protected static final String DD_TRACE_ID_CONTEXT_KEY
- See Also:
- Constant Field Values
-
DD_SPAN_ID_CONTEXT_KEY
protected static final String DD_SPAN_ID_CONTEXT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig filterConfig)
- Specified by:
init
in interfacejavax.servlet.Filter
- Overrides:
init
in classjavax.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 classjavax.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()
-
-