Interface ExemplarContextProvider


public interface ExemplarContextProvider
Provides exemplar information that can be attached to metrics.
Since:
1.17.0
  • Method Summary

    Modifier and Type
    Method
    Description
    The exemplar information returned by this method must contain the necessary information to create an exemplar.
  • Method Details

    • getExemplarContext

      @Nullable OtlpExemplarContext getExemplarContext()
      The exemplar information returned by this method must contain the necessary information to create an exemplar. If the exemplar information is not available (there is no current span or the span is not sampled) or the implementor does not want this particular span to be used as an exemplar, the method should return null.
      Returns:
      context object if available, null otherwise