Class NoopOpenTelemetryExemplarContextUnwrapper
java.lang.Object
io.quarkus.micrometer.runtime.export.exemplars.NoopOpenTelemetryExemplarContextUnwrapper
- All Implemented Interfaces:
OpenTelemetryContextUnwrapper
@Dependent
public class NoopOpenTelemetryExemplarContextUnwrapper
extends Object
implements OpenTelemetryContextUnwrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<P,R> R executeInContext(Function<P, R> methodReference, P parameter, io.vertx.core.Context requestContext) Called when an HTTP server response has ended.
-
Constructor Details
-
NoopOpenTelemetryExemplarContextUnwrapper
public NoopOpenTelemetryExemplarContextUnwrapper()
-
-
Method Details
-
executeInContext
public <P,R> R executeInContext(Function<P, R> methodReference, P parameter, io.vertx.core.Context requestContext) Description copied from interface:OpenTelemetryContextUnwrapperCalled when an HTTP server response has ended. Makes sure exemplars are produced because they have an OTel context.- Specified by:
executeInContextin interfaceOpenTelemetryContextUnwrapper- Type Parameters:
P- The parameter type is a type of metric, ex: TimerR- The return type of the method pointed by the methodReference- Parameters:
methodReference- Ex: Sample stop method referenceparameter- The parameter to pass to the methodrequestContext- The request context- Returns:
- The result of the method
-