Class AttachmentValue

java.lang.Object
io.opencensus.metrics.data.AttachmentValue
Direct Known Subclasses:
AttachmentValue.AttachmentValueString, AttachmentValueSpanContext

public abstract class AttachmentValue extends 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 Details

    • AttachmentValue

      public AttachmentValue()
  • Method Details

    • getValue

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