Class ExemplarUtils

java.lang.Object
io.opencensus.contrib.exemplar.util.ExemplarUtils

public final class ExemplarUtils extends Object
Utils for recording Exemplars for OpenCensus stats.
Since:
0.16
  • Field Details

  • Constructor Details

    • ExemplarUtils

      private ExemplarUtils()
  • Method Details

    • putSpanContextAttachments

      public static void putSpanContextAttachments(MeasureMap measureMap, SpanContext spanContext)
      Puts a SpanContext into the attachments of the given MeasureMap.
      Parameters:
      measureMap - the MeasureMap.
      spanContext - the SpanContext to be put as attachments.
      Since:
      0.16
    • checkNotNull

      private static <T> T checkNotNull(T reference, @Nullable Object errorMessage)