Class ExemplarUtils
- java.lang.Object
-
- io.opencensus.contrib.exemplar.util.ExemplarUtils
-
public final class ExemplarUtils extends java.lang.ObjectUtils for recordingExemplars for OpenCensus stats.- Since:
- 0.16
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTACHMENT_KEY_SPAN_CONTEXTKey forSpanContextin the contextual information of anExemplar.
-
Constructor Summary
Constructors Modifier Constructor Description privateExemplarUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static <T> TcheckNotNull(T reference, java.lang.Object errorMessage)static voidputSpanContextAttachments(MeasureMap measureMap, SpanContext spanContext)Puts aSpanContextinto the attachments of the givenMeasureMap.
-
-
-
Field Detail
-
ATTACHMENT_KEY_SPAN_CONTEXT
public static final java.lang.String ATTACHMENT_KEY_SPAN_CONTEXT
Key forSpanContextin the contextual information of anExemplar.- Since:
- 0.20
- See Also:
- Constant Field Values
-
-
Method Detail
-
putSpanContextAttachments
public static void putSpanContextAttachments(MeasureMap measureMap, SpanContext spanContext)
Puts aSpanContextinto the attachments of the givenMeasureMap.- Parameters:
measureMap- theMeasureMap.spanContext- theSpanContextto be put as attachments.- Since:
- 0.16
-
checkNotNull
private static <T> T checkNotNull(T reference, @Nullable java.lang.Object errorMessage)
-
-