Class ExemplarUtils
- java.lang.Object
-
- io.opencensus.contrib.exemplar.util.ExemplarUtils
-
public final class ExemplarUtils extends java.lang.Object
Utils for recordingExemplar
s for OpenCensus stats.- Since:
- 0.16
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ATTACHMENT_KEY_SPAN_CONTEXT
Key forSpanContext
in the contextual information of anExemplar
.
-
Constructor Summary
Constructors Modifier Constructor Description private
ExemplarUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static <T> T
checkNotNull(T reference, java.lang.Object errorMessage)
static void
putSpanContextAttachments(MeasureMap measureMap, SpanContext spanContext)
Puts aSpanContext
into the attachments of the givenMeasureMap
.
-
-
-
Field Detail
-
ATTACHMENT_KEY_SPAN_CONTEXT
public static final java.lang.String ATTACHMENT_KEY_SPAN_CONTEXT
Key forSpanContext
in 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 aSpanContext
into the attachments of the givenMeasureMap
.- Parameters:
measureMap
- theMeasureMap
.spanContext
- theSpanContext
to be put as attachments.- Since:
- 0.16
-
checkNotNull
private static <T> T checkNotNull(T reference, @Nullable java.lang.Object errorMessage)
-
-