Class GlobalOpenTelemetryInterceptorFactory
java.lang.Object
dev.restate.sdk.interceptor.opentelemetry.GlobalOpenTelemetryInterceptorFactory
- All Implemented Interfaces:
HandlerInterceptor.Factory,RunInterceptor.Factory
public final class GlobalOpenTelemetryInterceptorFactory
extends Object
implements HandlerInterceptor.Factory, RunInterceptor.Factory
SPI default using
GlobalOpenTelemetry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable HandlerInterceptorCreateHandlerInterceptor.@Nullable RunInterceptorCreateRunInterceptor.
-
Constructor Details
-
GlobalOpenTelemetryInterceptorFactory
public GlobalOpenTelemetryInterceptorFactory()
-
-
Method Details
-
createHandlerInterceptor
Description copied from interface:HandlerInterceptor.FactoryCreateHandlerInterceptor. Invoked once at endpoint initialization, hence the resulting interceptor is cached and reused across all invocations.Return
nullto skip this factory.- Specified by:
createHandlerInterceptorin interfaceHandlerInterceptor.Factory
-
createRunInterceptor
Description copied from interface:RunInterceptor.FactoryCreateRunInterceptor. Invoked once at endpoint initialization, hence the resulting interceptor is cached and reused across all invocations.Return
nullto skip this factory.- Specified by:
createRunInterceptorin interfaceRunInterceptor.Factory
-