Class ServletFilterInitializer
java.lang.Object
io.jenkins.plugins.opentelemetry.init.ServletFilterInitializer
- All Implemented Interfaces:
ExtensionPoint,io.jenkins.plugins.opentelemetry.api.OpenTelemetryLifecycleListener,Comparable<io.jenkins.plugins.opentelemetry.api.OpenTelemetryLifecycleListener>
@Extension(dynamicLoadable=MAYBE,
optional=true)
public class ServletFilterInitializer
extends Object
implements io.jenkins.plugins.opentelemetry.api.OpenTelemetryLifecycleListener
TODO Register the
StaplerInstrumentationServletFilter earlier in the chain of Filter of the Jenkins webapp,
register it before the HudsonFilter so that the AuditingSecurityListener
events can be associated to an HTTP trace.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jenkins.plugins.opentelemetry.api.OpenTelemetryLifecycleListener
afterConfiguration, compareTo, ordinal
-
Constructor Details
-
ServletFilterInitializer
public ServletFilterInitializer()
-
-
Method Details
-
postConstruct
@PostConstruct public void postConstruct() -
preDestroy
Unregister theFilters from thePluginServletFilter. As@PreDestroydoesn't seem to be honored by Jenkins, we use@Terminatorin addition.- Throws:
jakarta.servlet.ServletException
-