Class AbstractOpenTelemetryInterceptor
java.lang.Object
org.apache.cxf.tracing.AbstractTracingProvider
org.apache.cxf.tracing.opentelemetry.AbstractOpenTelemetryProvider
org.apache.cxf.tracing.opentelemetry.AbstractOpenTelemetryInterceptor
- All Implemented Interfaces:
Interceptor<Message>,PhaseInterceptor<Message>
- Direct Known Subclasses:
OpenTelemetryStartInterceptor,OpenTelemetryStopInterceptor
public abstract class AbstractOpenTelemetryInterceptor
extends AbstractOpenTelemetryProvider
implements PhaseInterceptor<Message>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cxf.tracing.AbstractTracingProvider
AbstractTracingProvider.TraceScopeHolder<T> -
Field Summary
Fields inherited from class org.apache.cxf.tracing.opentelemetry.AbstractOpenTelemetryProvider
LOG, openTelemetry, TRACE_SPAN, tracer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractOpenTelemetryInterceptor(String phase, io.opentelemetry.api.OpenTelemetry openTelemetry, io.opentelemetry.api.trace.Tracer tracer) protectedAbstractOpenTelemetryInterceptor(String phase, io.opentelemetry.api.OpenTelemetry openTelemetry, String instrumentationName) -
Method Summary
Modifier and TypeMethodDescriptionCollection<PhaseInterceptor<? extends Message>>Returns a collection of Interceptors that should be added to the chain whenever this interceptor is added.getAfter()Returns a set containing the IDs of the interceptors that should be executed before this interceptor.Returns a set containing the IDs of the interceptors that should be executed after this interceptor.getId()Returns the ID of this interceptor.getPhase()Returns the phase in which this interceptor is excecuted.voidhandleFault(Message message) Called for all interceptors (in reverse order) on which handleMessage had been successfully invoked, when normal execution of the chain was aborted for some reason.Methods inherited from class org.apache.cxf.tracing.opentelemetry.AbstractOpenTelemetryProvider
isAsyncResponse, startTraceSpan, stopTraceSpanMethods inherited from class org.apache.cxf.tracing.AbstractTracingProvider
buildSpanDescription, getSpanIdHeader, getUriMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.interceptor.Interceptor
handleMessage
-
Constructor Details
-
AbstractOpenTelemetryInterceptor
-
AbstractOpenTelemetryInterceptor
protected AbstractOpenTelemetryInterceptor(String phase, io.opentelemetry.api.OpenTelemetry openTelemetry, io.opentelemetry.api.trace.Tracer tracer)
-
-
Method Details
-
getAfter
Description copied from interface:PhaseInterceptorReturns a set containing the IDs of the interceptors that should be executed before this interceptor. This interceptor will be placed in the chain after the interceptors in the set.- Specified by:
getAfterin interfacePhaseInterceptor<Message>- Returns:
- the IDs of the interceptors
-
getBefore
Description copied from interface:PhaseInterceptorReturns a set containing the IDs of the interceptors that should be executed after this interceptor. This interceptor will be placed in the inteceptor chain before the interceptors in the set.- Specified by:
getBeforein interfacePhaseInterceptor<Message>- Returns:
- the ids of the interceptors
-
getId
Description copied from interface:PhaseInterceptorReturns the ID of this interceptor.- Specified by:
getIdin interfacePhaseInterceptor<Message>- Returns:
- the ID
-
getPhase
Description copied from interface:PhaseInterceptorReturns the phase in which this interceptor is excecuted.- Specified by:
getPhasein interfacePhaseInterceptor<Message>- Returns:
- the phase
-
getAdditionalInterceptors
Description copied from interface:PhaseInterceptorReturns a collection of Interceptors that should be added to the chain whenever this interceptor is added. May return null.- Specified by:
getAdditionalInterceptorsin interfacePhaseInterceptor<Message>- Returns:
- the collection of interceptors
-
handleFault
Description copied from interface:InterceptorCalled for all interceptors (in reverse order) on which handleMessage had been successfully invoked, when normal execution of the chain was aborted for some reason.- Specified by:
handleFaultin interfaceInterceptor<Message>
-