Class TraceContextServletFilter
java.lang.Object
io.jenkins.plugins.opentelemetry.servlet.TraceContextServletFilter
- All Implemented Interfaces:
ExtensionPoint
,io.jenkins.plugins.opentelemetry.api.OpenTelemetryLifecycleListener
,Comparable<io.jenkins.plugins.opentelemetry.api.OpenTelemetryLifecycleListener>
,javax.servlet.Filter
@Extension
public class TraceContextServletFilter
extends Object
implements javax.servlet.Filter, io.jenkins.plugins.opentelemetry.api.OpenTelemetryLifecycleListener
Must be a
Filter
rather than a HttpServletFilter
because it must wrap the invocation of
the FilterChain
to ensure that the Span
is correctly associated with the current Context
.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
_doFilter
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) void
afterConfiguration
(io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties configProperties) void
doFilter
(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain chain) boolean
int
hashCode()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.servlet.Filter
destroy, init
Methods inherited from interface io.jenkins.plugins.opentelemetry.api.OpenTelemetryLifecycleListener
compareTo, ordinal
-
Field Details
-
JENKINS_TRIGGER_BUILD_URL_PATTERN
-
-
Constructor Details
-
TraceContextServletFilter
public TraceContextServletFilter()
-
-
Method Details
-
doFilter
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException - Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
_doFilter
public void _doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException - Throws:
IOException
javax.servlet.ServletException
-
afterConfiguration
public void afterConfiguration(io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties configProperties) - Specified by:
afterConfiguration
in interfaceio.jenkins.plugins.opentelemetry.api.OpenTelemetryLifecycleListener
-
equals
-
hashCode
public int hashCode()
-