Class ReactivePanacheMongoRepositoryTraceInterceptor
java.lang.Object
it.pagopa.swclient.mil.observability.ReactivePanacheMongoRepositoryTraceInterceptor
@Interceptor
@Priority(5000)
public class ReactivePanacheMongoRepositoryTraceInterceptor
extends Object
This class implements the logic to trace with OpenTelemetry standard the invocations to classes
which implements io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoRepositoryBase
interface.
- Author:
- Antonio Tarricone
-
Field Summary
Modifier and TypeFieldDescriptionMethods of io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoRepositoryBase that must not be traced.private io.opentelemetry.api.trace.Tracer
OTel tracer. -
Constructor Summary
ConstructorDescriptionReactivePanacheMongoRepositoryTraceInterceptor
(io.opentelemetry.api.trace.Tracer tracer) Constructor. -
Method Summary
-
Field Details
-
tracer
private io.opentelemetry.api.trace.Tracer tracerOTel tracer.
-
methodsToIgnore
Methods of io.quarkus.mongodb.panache.reactive.ReactivePanacheMongoRepositoryBase that must not be traced.
-
-
Constructor Details
-
ReactivePanacheMongoRepositoryTraceInterceptor
@Inject ReactivePanacheMongoRepositoryTraceInterceptor(io.opentelemetry.api.trace.Tracer tracer) Constructor.
- Parameters:
tracer
- OTel tracer.
-
-
Method Details
-
trace
This method implements the tracing logic.
- Parameters:
context
-InvocationContext
- Returns:
- Output returned by intercepted method.
- Throws:
Exception
- Exception thrown by intercepted method.
-