Class ExemplarUtils
java.lang.Object
io.opencensus.contrib.exemplar.util.ExemplarUtils
Utils for recording
Exemplar
s for OpenCensus stats.- Since:
- 0.16
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Key forSpanContext
in the contextual information of anExemplar
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> T
checkNotNull
(T reference, Object errorMessage) static void
putSpanContextAttachments
(MeasureMap measureMap, SpanContext spanContext) Puts aSpanContext
into the attachments of the givenMeasureMap
.
-
Field Details
-
ATTACHMENT_KEY_SPAN_CONTEXT
Key forSpanContext
in the contextual information of anExemplar
.- Since:
- 0.20
- See Also:
-
-
Constructor Details
-
ExemplarUtils
private ExemplarUtils()
-
-
Method Details
-
putSpanContextAttachments
Puts aSpanContext
into the attachments of the givenMeasureMap
.- Parameters:
measureMap
- theMeasureMap
.spanContext
- theSpanContext
to be put as attachments.- Since:
- 0.16
-
checkNotNull
-