Package io.opencensus.metrics.data
Class AttachmentValue
- java.lang.Object
-
- io.opencensus.metrics.data.AttachmentValue
-
- Direct Known Subclasses:
AttachmentValue.AttachmentValueString
,AttachmentValueSpanContext
public abstract class AttachmentValue extends java.lang.Object
The value ofExemplar
attachment.In Stats API we only provide one subclass
AttachmentValue.AttachmentValueString
. No other subclasses are added because we don't want to introduce dependencies on other libraries, for example Tracing APIs.Other packages are free to extend this class to hold specific information. As an example, see
io.opencensus.contrib.exemplar.util.AttachmentValueSpanContext
.- Since:
- 0.20
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AttachmentValue.AttachmentValueString
StringAttachmentValue
.
-
Constructor Summary
Constructors Constructor Description AttachmentValue()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.String
getValue()
Returns the string attachment value.
-