MicrometerInterceptorFactory

class MicrometerInterceptorFactory : HandlerInterceptor.Factory, RunInterceptor.Factory

Micrometer Observation interceptor factory for Java handlers. Implements both and RunInterceptor.Factory so a single registration covers both invocation- and run-level observations.

Spans produced through the Micrometer → tracing bridge mirror those emitted by sdk-interceptor-opentelemetry: attempt <target> for the handler and run (<name>) for each ctx.run, with restate.invocation.id, restate.invocation.target, and restate.run.name attributes.

Observation scope is thread-local. Use with MicrometerRunContextPropagator (registered via SPI by default) to propagate spans to run closures.

Constructors

Link copied to clipboard
constructor(registry: ObservationRegistry)

Functions

Link copied to clipboard
open fun combine(factories: Stream<out HandlerInterceptor.Factory>): HandlerInterceptor
open fun combine(factories: Stream<out RunInterceptor.Factory>): RunInterceptor
Link copied to clipboard
@Nullable
open fun createHandlerInterceptor(): @Nullable HandlerInterceptor
Link copied to clipboard
@Nullable
open fun createRunInterceptor(): @Nullable RunInterceptor