Class AttachmentValue

  • Direct Known Subclasses:
    AttachmentValue.AttachmentValueString, AttachmentValueSpanContext

    public abstract class AttachmentValue
    extends java.lang.Object
    The value of Exemplar 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
    • Constructor Detail

      • AttachmentValue

        public AttachmentValue()
    • Method Detail

      • getValue

        public abstract java.lang.String getValue()
        Returns the string attachment value.
        Returns:
        the string attachment value.
        Since:
        0.20