Class OpenTelemetryExemplarContextUnwrapper

java.lang.Object
io.quarkus.micrometer.runtime.export.exemplars.OpenTelemetryExemplarContextUnwrapper
All Implemented Interfaces:
OpenTelemetryContextUnwrapper

@Dependent public class OpenTelemetryExemplarContextUnwrapper extends Object implements OpenTelemetryContextUnwrapper
  • Constructor Details

    • OpenTelemetryExemplarContextUnwrapper

      public OpenTelemetryExemplarContextUnwrapper()
  • Method Details

    • executeInContext

      public <P, R> R executeInContext(Function<P,R> methodReference, P parameter, io.vertx.core.Context requestContext)
      Description copied from interface: OpenTelemetryContextUnwrapper
      Called when an HTTP server response has ended. Makes sure exemplars are produced because they have an OTel context.
      Specified by:
      executeInContext in interface OpenTelemetryContextUnwrapper
      Type Parameters:
      P - The parameter type is a type of metric, ex: Timer
      R - The return type of the method pointed by the methodReference
      Parameters:
      methodReference - Ex: Sample stop method reference
      parameter - The parameter to pass to the method
      requestContext - The request context
      Returns:
      The result of the method