Interface OpenTelemetryContextUnwrapper

All Known Implementing Classes:
NoopOpenTelemetryExemplarContextUnwrapper, OpenTelemetryExemplarContextUnwrapper

public interface OpenTelemetryContextUnwrapper
  • Method Summary

    Modifier and Type
    Method
    Description
    <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: 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