Interface OpenTelemetryContextUnwrapper
- All Known Implementing Classes:
NoopOpenTelemetryExemplarContextUnwrapper,OpenTelemetryExemplarContextUnwrapper
public interface OpenTelemetryContextUnwrapper
-
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.
-
Method Details
-
executeInContext
<P,R> R executeInContext(Function<P, R> methodReference, P parameter, io.vertx.core.Context requestContext) Called when an HTTP server response has ended. Makes sure exemplars are produced because they have an OTel context.- 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
-